LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-25-2018, 02:14 PM   #1
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 442

Rep: Reputation: 196Reputation: 196
setxkbmap settings get reset when wacom tablet is plugged in.


As the title suggests, my keyboard settings get reset when I plug in my, admittedly, old intuos 3 tablet (other usb devices might also cause this but I don't have any to test with)

Before plugging it in:
Code:
setxkbmap -model pc104 -layout us -variant altgr-intl -option compose:rwin

setxkbmap -print -verbose 10

Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /etc/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      pc104
layout:     us
variant:    altgr-intl
options:    compose:rwin,terminate:ctrl_alt_bksp
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us(altgr-intl)+inet(evdev)+compose(rwin)+terminate(ctrl_alt_bksp)
geometry:   pc(pc104)
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us(altgr-intl)+inet(evdev)+compose(rwin)+terminate(ctrl_alt_bksp)"	};
	xkb_geometry  { include "pc(pc104)"	};
};
After plugging it in:
Code:
setxkbmap -print -verbose 10

Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /etc/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      pc105
layout:     us
options:    terminate:ctrl_alt_bksp
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+inet(evdev)+terminate(ctrl_alt_bksp)
geometry:   pc(pc105)
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us+inet(evdev)+terminate(ctrl_alt_bksp)"	};
	xkb_geometry  { include "pc(pc105)"	};
};
udevadm monitor -e log when plugged in:
https://pastebin.com/9C5rdRU5


My kernel is Linux 4.4.38 #2 SMP Sun Dec 11 16:11:02 CST 2016
(64 bit, multilib AMD)

Packages: ( I need to update at some point :P)

eudev-3.2.5-x86_64-1
eudev-compat32-3.2.5-x86_64-1compat32

setxkbmap-1.3.1-x86_64-1

libwacom-0.26-x86_64-1
libwacom-compat32-0.26-x86_64-1compat32
xf86-input-wacom-0.35.0-x86_64-1

Other users of various distros seem to have similar problems.
My first thought is to just write a bunch of udev rules that run a script, but maybe there's a simpler solution?
 
Old 04-25-2018, 07:39 PM   #2
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 442

Original Poster
Rep: Reputation: 196Reputation: 196
The script in question, by the way:
Code:
#!/bin/sh
USER=yourname
export DISPLAY=:0
export XAUTHORITY=/home/$USER/.Xauthority
(
sleep 5
su -c ' setxkbmap -model pc104 -layout us -variant altgr-intl -option compose:rwin' - $USER
)&
Not sure if this is the best way to do it, but it does work. The display and xauthority, as well as the su invocation are there because setxkbmap seems to be tied to a specific xsession/user.

Last edited by Geist; 04-27-2018 at 05:57 PM. Reason: subshell the thing with a sleep to run the program when the usb device is fully mounted
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tablet won't work on Flash 8. Reinstalled xorg and the Wacom Tablet Project still doesn't work. Pressure issue korygiles Linux - Newbie 6 09-06-2016 12:13 AM
Wacom Tablet Help Me ShadowScorcher Linux - Newbie 1 05-02-2016 04:33 AM
setxkbmap settings reset after suspend mattca Slackware 0 03-23-2012 09:57 PM
Configuring a Wacom Graphire Tablet to track like a tablet (not like a mouse) anlace Debian 2 11-07-2006 05:20 AM
Wacom Tablet and wacom drivers Mallow005 Linux - General 1 12-27-2002 02:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration