regolith-linux / regolith-desktop

Meta package for the Regolith Desktop Environment
1.51k stars 31 forks source link

Graphics Tablet Not Working #693

Open Cogoslo opened 2 years ago

Cogoslo commented 2 years ago

So, i have a HUION 320m tablet, that works fine in gnome, but is recognized in the UI, yes, but settings do not apply to it, the pen is not picked up in settings, and it is not shown in xsetwacom list devices. Forcing the driver through a conf file does not work either.

It would be great to have this issue fixed, as i'd love to use my graphics tablet whilst in regolith, as it's slowly become my new favorite way to use a desktop

The tablet works fine in normal gnome ubuntu however, so i know it is a regolith thing.

kgilmer commented 2 years ago

Hi @Cogoslo sorry I don't have such a device. For me to get a better idea of your problem I need more information. What Regolith or gnome software are you using? Is any of the software coming from the tablet vendor? What "thing" is working in stock ubuntu that doesn't work in Regolith?

Cogoslo commented 2 years ago

i'm using regolith 2.0, the wacom settings page works fine on base ubuntu, but when i switch to the regolith manager, it doesn't, the software does not come from the vendor, it's a base ubuntu driver, i'm using most recent everything, and when used with regolith, it merely acts as a pointing device, with none of the settings applying to it, and the pen not being picked up, however in regular ubuntu, it is.

ferdinandyb commented 2 years ago

I have access to a wacom device, but most likely I'll only be around it next Tuesday. On 1.6 I remember I managed to use it, but can't remember any details. Anyhow, if this is not solved before that, I'll take a look on Tuesday.

kgilmer commented 2 years ago

It's possible that a system service to support such devices is not auto started in a Regolith session. My kid has a drawing pad now that I think about it. I'll see if i can repro.

bonryu commented 2 years ago

I have a related issue to @Cogoslo. My wacom tablet works acceptably, in Gnome (default desktop of Ubuntu 20.04) and Regolith 2., BUT in Regolith2 I can't edit the buttons functions, nor map to a specific monitor. I Love regolith but I it would be really nice to get back the ability for the button mappings (settings->wacom tablet->Map Buttons) to be respected, as it was in Gnome. Most important for me is using one of the buttons to "switch monitor". The "settings->wacom table -> Map to Monitor" setting could be a work around but it doesn't work either. I have a Wacom Bamboo Create (Model name CTH-670), an older wacom tablet. Wonder if there is some program that needs to run in the background for this to work?

kgilmer commented 2 years ago

Hi @bonryu are you running regolith-control-center or gnome-control-center? For this issue, can you try the latter if you haven't and LMK the result?

bonryu commented 2 years ago

Hi @kgilmer , I tried both. "Map Buttons" and "Map to Monitor" do not work with gnome-control-center nor regolith-control-center. Btw, my understanding is that these are the "settings" programs. 2022-10-05_20-12

I upgraded from Ubuntu 20.04 to 22.04, and still no luck in Regolith, but works in Gnome (X11). Also, the map button's interface is different in regolith desktop (See attached pic above) compared to when logged into Gnome. In Gnome, the svg image of the tablet buttons schematic shows up.

As a work around, I managed to map the buttons to keyboard shortcuts using xsetwacom. One of the buttons is mapped to another keyboard shortcut that executes a script for switching monitors.

In case others may find it helpful for the time being, here is some lines I put at the end of my ./config/regloith2/i3/config file.

# Fix for tablet buttons not working in regolith2
bindsym $alt+Ctrl+Shift+m exec /home/bonryu/scripts/bin/switchmonitors.sh
bindsym $alt+Ctrl+Shift+x exec /home/bonryu/scripts/bin/xsetwacom.sh
exec_always /home/bonryu/scripts/bin/xsetwacom.sh

And here are the accompanying scripts. The switchmonitors.sh script became long to enable automatically rotating the pen and touch input according to the orientation of each monitor. switchmonitors (copy).sh.txt xsetwacom (copy).sh.txt

The original switchmonitors.sh just contained one line (I got it from a youtube video):

#!/bin/sh
for ID in $(xsetwacom list | cut -f2 | cut -d' ' -f2); do xsetwacom set "$ID" maptooutput next; done

Thank you, Bon

bonryu commented 2 years ago

Hi @kgilmer From at https://gitlab.gnome.org/GNOME/gnome-control-center , I followed their gdb instruction for gnome-control-center, namely:

gdb gnome-control-center
(gdb) run

and here is an error I got when I click on "Map Buttons"

Error setting OSD's visibility: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/gnome/Shell/Wacom”

I get the exact same result, when doing

gdb regolith-control-center
(gdb) run

Thank you, Bon

imochoa commented 1 year ago

@bonryu did you figure it out in the end? I have the exact same issue on my system:

For now I am just mapping buttons with xsetwacom, but recovering GNOME's nice GUI for it would be amazing

bonryu commented 1 year ago

@IMO, no I haven't. I'm also still using xsetwacom to map buttons.

On Mon., Jul. 31, 2023, 7:03 a.m. IMO, @.***> wrote:

@bonryu https://github.com/bonryu did you figure it out in the end? I have the exact same issue on my system:

  • Using X11 (not wayland)
  • Ubuntu 22.04.2 LTS
  • Gnome 42.9

For now I am just mapping buttons with xsetwacom, but recovering GNOME's nice GUI for it would be amazing

— Reply to this email directly, view it on GitHub https://github.com/regolith-linux/regolith-desktop/issues/693#issuecomment-1658148953, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRHORQCPA3QSR3IQRF3ZTLXS6GJJANCNFSM55ZGETWA . You are receiving this because you were mentioned.Message ID: @.***>

kgilmer commented 1 year ago

Hey! I don't have much idea about your issue but think it might be worth trying the Regolith 3.0 beta. It has a sway-based session developed by @SoumyaRanjanPatnaik that does not have the component I believe may be what is limiting you. Sway may provide another solution to your workflow issue. But, try in a VM or something if possible, it's still beta so bugs might get you. HTH

SoumyaRanjanPatnaik commented 1 year ago

I second this. I think there's a good enough chance Regolith 3.0 with the sway session might work. Seems like sway already has support for graphics tablets. pr that added this.

imochoa commented 1 year ago

Cool! I'll try Regolith 3.0 + Sway once the .iso is out and report back 👍🏼