Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device information not found #29

Open
justinclift opened this issue Mar 25, 2019 · 6 comments
Open

Device information not found #29

justinclift opened this issue Mar 25, 2019 · 6 comments

Comments

@justinclift
Copy link

justinclift commented Mar 25, 2019

Plugged in my old Wacom tablet, an Intuos "pen & touch small" (CTH-480) as I need to do some graphics stuff over the next few days.

Trying out Wacom GUI (wacom-gui v0.3.0-rc17 rpm download) just displays a error box twice:

Wacom_GUI-screenshot1

... then a mostly blank window:

Wacom_GUI-screenshot2

The console output (as this was launched manually from the cli) shows:

$ /usr/local/bin/wacom-gui
invalid literal for float(): 2,10.5
invalid literal for float(): 2,10.5

The problem sounds a lot like what's described in a comment on #26 (comment).

For reference:

$ xsetwacom list
Wacom Intuos PT S Pad pad               id: 9   type: PAD       
Wacom Intuos PT S Pen stylus            id: 10  type: STYLUS    
Wacom Intuos PT S Pen eraser            id: 11  type: ERASER    
Wacom Intuos PT S Finger touch          id: 12  type: TOUCH
$ libwacom-list-local-devices --database /usr/local/wacom-gui/data
[Device]
Name=Intuos Pen & Touch Small
DeviceMatch=usb:056a:0302;
Class=Bamboo
Width=6
Height=4
IntegratedIn=
Layout=intuos-s-pt.svg
Styli=0xfffff;0xffffe;

[Features]
Reversible=false
Stylus=true
Ring=false
Ring2=false
Touch=true
TouchSwitch=true
StatusLEDs=
NumStrips=0
Buttons=4
[Buttons]
Left=
Right=
Top=A;B;C;D;
Bottom=
Touchstrip=
Touchstrip2=
OLEDs=
Ring=
Ring2=
EvdevCodes=0x110;0x111;0x115;0x116;
RingNumModes=0
Ring2NumModes=0
StripsNumModes=0

---------------------------------------------------------------
[Device]
Name=Intuos Pen & Touch Small
DeviceMatch=usb:056a:0302;
Class=Bamboo
Width=6
Height=4
IntegratedIn=
Layout=intuos-s-pt.svg
Styli=0xfffff;0xffffe;

[Features]
Reversible=false
Stylus=true
Ring=false
Ring2=false
Touch=true
TouchSwitch=true
StatusLEDs=
NumStrips=0
Buttons=4
[Buttons]
Left=
Right=
Top=A;B;C;D;
Bottom=
Touchstrip=
Touchstrip2=
OLEDs=
Ring=
Ring2=
EvdevCodes=0x110;0x111;0x115;0x116;
RingNumModes=0
Ring2NumModes=0
StripsNumModes=0

---------------------------------------------------------------
[Device]
Name=Intuos Pen & Touch Small
DeviceMatch=usb:056a:0302;
Class=Bamboo
Width=6
Height=4
IntegratedIn=
Layout=intuos-s-pt.svg
Styli=0xfffff;0xffffe;

[Features]
Reversible=false
Stylus=true
Ring=false
Ring2=false
Touch=true
TouchSwitch=true
StatusLEDs=
NumStrips=0
Buttons=4
[Buttons]
Left=
Right=
Top=A;B;C;D;
Bottom=
Touchstrip=
Touchstrip2=
OLEDs=
Ring=
Ring2=
EvdevCodes=0x110;0x111;0x115;0x116;
RingNumModes=0
Ring2NumModes=0
StripsNumModes=0

---------------------------------------------------------------
@justinclift
Copy link
Author

justinclift commented Mar 25, 2019

Note that getting Wacom GUI working isn't critical to me. Just tried it more from curiosity than anything else. I was able to switch the tablet to Relative mode (instead of the default Absolute) using xsetwacom, which should be "good enough" for the task at hand. 😄

$ xsetwacom --set "Wacom Intuos PT S Pen stylus" mode Relative

@tb2097
Copy link
Owner

tb2097 commented Mar 25, 2019

If you update the file /usr/local/wacom-gui/data/intuos-s-pt.tablet, you should be able to make it work.

- Name=Intuos Pen & Touch Small
+ Name=Wacom Intuos PT S```

If that works, I can just submit another support ticket for libwacom :)

@justinclift
Copy link
Author

justinclift commented Mar 25, 2019

Interesting. That does help, as the two warning dialogs no longer appear, and some of the graphics load. 😄

Wacom_GUI-screenshot3
Wacom_GUI-screenshot4

It doesn't look 100% correct though, as some errors are displayed on the console (launching this via CLI) as I click on the various buttons. eg Functions, Stylus, Touch:

 wacom-gui 
invalid literal for float(): 2,10.5
invalid literal for float(): 2,10.5
Traceback (most recent call last):
  File "/usr/local/wacom-gui/wacom-gui.py", line 298, in tabletSelect
    self.updateConfigs()
  File "/usr/local/wacom-gui/wacom-gui.py", line 367, in updateConfigs
    if pad != self.configs[self.dev][self.config]['pad']['buttons']:
KeyError: None
Traceback (most recent call last):
  File "/usr/local/wacom-gui/wacom-gui.py", line 338, in configSelect
    self.loadConfig(self.dev, self.dev_id, config)
  File "/usr/local/wacom-gui/wacom-gui.py", line 278, in loadConfig
    self.configs[dev][config]['pad']['buttons'])
KeyError: 'default'
Traceback (most recent call last):
  File "/usr/local/wacom-gui/wacom-gui.py", line 338, in configSelect
    self.loadConfig(self.dev, self.dev_id, config)
  File "/usr/local/wacom-gui/wacom-gui.py", line 278, in loadConfig
    self.configs[dev][config]['pad']['buttons'])
KeyError: 'default'
Traceback (most recent call last):
  File "/usr/local/wacom-gui/wacom-gui.py", line 298, in tabletSelect
    self.updateConfigs()
  File "/usr/local/wacom-gui/wacom-gui.py", line 367, in updateConfigs
    if pad != self.configs[self.dev][self.config]['pad']['buttons']:
KeyError: 'default'
Traceback (most recent call last):
  File "/usr/local/wacom-gui/wacom-gui.py", line 437, in closeEvent
    self.updateConfigs()
  File "/usr/local/wacom-gui/wacom-gui.py", line 367, in updateConfigs
    if pad != self.configs[self.dev][self.config]['pad']['buttons']:
KeyError: 'default'
$

@tb2097
Copy link
Owner

tb2097 commented Mar 28, 2019

This appears to be an issue with parsing out the SVG file for the tablet; when I get a moment I'll try and discern if it's an issue with the script or the format of the SVG itself.

@justinclift
Copy link
Author

justinclift commented Mar 29, 2019

No worries @tb2097. I'm happy to run suggested commands and/or poke at stuff if you need. 😄

@tb2097
Copy link
Owner

tb2097 commented Dec 1, 2020

Please try using the latest release: https://github.com/tb2097/wacom-gui/releases/tag/v0.3.0-rc18, let me know if this resolves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants