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



Sunday, November 8, 2015

Update from Fedora 22 to Fedora 23 with Nvidia Proprietary Driver

I decided to upgrade my own workstation to Fedora 23 from Fedora 23 this weekend. After going through some struggles, I thought I will write down some of my steps so people can reference in case they hit similar obstacles.

Please note that I am not responsible for anything case by the info in the article and the article is provided as is.

Please also note not all info is coming from me. Some of them is found on the referenced article stated in there.

Perform Upgrade

I followed following guide:

https://fedoramagazine.org/upgrading-from-fedora-22-to-fedora-23/

sudo dnf upgrade

sudo dnf install dnf-plugin-system-upgrade

sudo dnf system-upgrade download --releasever=23 --best

The only thing that I did different from the article is that I hit error that mention nvidia drive from rpmfusion cannot be upgraded. So I did following

sudo dnf erase *nvidia
and then redo
sudo dnf system-upgrade download --releasever=23 --best
sudo dnf system-upgrade reboot
After that, I am able to successfully update.

However, after the update is complete, when I tried to install nVidia proprietary driver, but facing following issue:

nVidia Driver is not compatible with Fedora 23 as Fedora 23 includes X.Org 1.18 release candidate version
https://ask.fedoraproject.org/en/question/77564/fedora-23-nvidia-proprietary-driver/

To overcome it, I following article
http://rglinuxtech.com/?p=1598

sudo dnf --allowerasing --releasever=22 downgrade xorg-x11-server-Xorg
sudo cat exclude=xorg-x11* >> /etc/dnf/dnf.conf

Follow the article to install nVidia

http://rpmfusion.org/Howto/nVidia

sudo cat exclude=xorg-x11* >> /etc/dnf/dnf.conf
sudo reboot now

However, after reboot, I found the GDM screen shows up, but no user login prompt. After some research, I found following article

https://ask.fedoraproject.org/en/question/77555/fedora-23-gnome-login-issues/

which seem to indicate that GDM not working with nVidia driver (it seem true, if I remove all nVidia package, the GDM shows up correctly).

As a workaround, I use lightgdm to login
https://ask.fedoraproject.org/en/question/37728/unable-to-login-after-upgrade/

On the login screen, press

ctl + Alt + F2
Login as a user that have sudo previlige

sudo dnf -y install lightdm system-switch-displaymanager
sudo system-switch-displaymanager lightdm
sudo reboot now
After that, it should have lightdm to prompt login and one should have Fedora 23 + nVidia proprietary driver.

Please note to remove the change on
sudo cat exclude=xorg-x11* >> /etc/dnf/dnf.conf
Once there is an offical X.Org 1.18 release and offical nVidia release to support it. (Also switch back lightdm to gdm if it is fixed.)

I did use nVidia proprietary driver because my nVidia card did not support by open source driver and only have software render, which is too slow to use on Krita.