Thursday, November 26, 2015

Fedora 23 and Wacom Cintiq as Secondary Display

Fedora 23 recognized most of things automatically  for Wacom Cintiq and Krtia works out of box with most settings as default.

However, I could not find how to make Cintiq as a secondary display and able to draw on it directly. There is not UI button for it. Setting the Cintiq as a secondary display only make the Cintiq monitor itself as a secondary, however, the stylus detection still map to the primary screen.

After some Google search and debugging, found following post


which explains in great detail how to handle it.

However, when I run it, it failed with following error
Cannot find device 'Wacom Cintiq 13HD stylus'.


Cannot find device 'Wacom Cintiq 13HD eraser'.

I then use xsetwacom to find the devices real name
xsetwacom --list devices

It then display as
Wacom Cintiq 13HD Pen stylus id: 14 type: STYLUS 

Wacom Cintiq 13HD Pen eraser id: 15 type: ERASER 

Wacom Cintiq 13HD Pad pad id: 16 type: PAD

So I modified the script as following

#!/bin/bash
#
# Toggles which screen the cintiq is mapped to.
if [ "$(cat ~/.wacom-mapping)" -eq 0 ];
then
    echo 1
    xsetwacom set "Wacom Cintiq 13HD Pen stylus" MapToOutput "HEAD-1"
    xsetwacom set "Wacom Cintiq 13HD Pen eraser" MapToOutput "HEAD-1"
    echo 1 > ~/.wacom-mapping
else
    echo 0
    xsetwacom set "Wacom Cintiq 13HD Pen stylus" MapToOutput "HEAD-0"
    xsetwacom set "Wacom Cintiq 13HD Pen eraser" MapToOutput "HEAD-0"
    echo 0 > ~/.wacom-mapping
fi

Re run the script, and it works this time
[localhost ~]$ wacom-toggle-mapping
1



No comments:

Post a Comment