You are not logged in.

#1 2016-10-17 12:12:38

twyK
Member
Registered: 2016-10-17
Posts: 12

[SOLVED] xset led doesn't work (on wayland...)

Hello,
Its a week that i can't light up my keyboard led because "xset led 3" or "xset led named "Scroll_Lock" doesn't work, and console doesn't show up nothing...

When i run these commands with sudo, console return:

No protocol specified
xset:  unable to open display ":0"

Someone can help me to fix this little problem?

Last edited by twyK (2016-10-17 17:48:37)

Offline

#2 2016-10-17 15:55:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: [SOLVED] xset led doesn't work (on wayland...)

Well, to run it as root, try sudo bash -c "DISPLAY=:0 xset led 3"
Not sure if it will help with the underlying problem.

Edit: Oh, and welcome to Arch Linux smile

Last edited by ewaller (2016-10-17 15:55:43)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-10-17 16:10:11

twyK
Member
Registered: 2016-10-17
Posts: 12

Re: [SOLVED] xset led doesn't work (on wayland...)

ewaller wrote:

Well, to run it as root, try sudo bash -c "DISPLAY=:0 xset led 3"
Not sure if it will help with the underlying problem.

It gave me the same error sad
EDIT: I need the led's on the keyboard turn on

ewaller wrote:

Edit: Oh, and welcome to Arch Linux smile

I'm already using Arch for 1 month, loving it, thanks you ^.^

Last edited by twyK (2016-10-17 16:27:58)

Offline

#4 2016-10-17 16:31:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: [SOLVED] xset led doesn't work (on wayland...)

Opps, sorry.  This is an Xauthority thing.
Try:

sudo bash -c "XAUTHORITY=$(ls -1 /home/*/.Xauthority | head -n 1 ) xset led 3"

I think that will work hmm


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2016-10-17 16:39:05

twyK
Member
Registered: 2016-10-17
Posts: 12

Re: [SOLVED] xset led doesn't work (on wayland...)

ewaller wrote:

Opps, sorry.  This is an Xauthority thing.
Try:

sudo bash -c "XAUTHORITY=$(ls -1 /home/*/.Xauthority | head -n 1 ) xset led 3"

I think that will work hmm

Now i get:

Invalid MIT-MAGIC-COOKIE-1 keyxset:  unable to open display ":0"

Last edited by twyK (2016-10-17 16:39:22)

Offline

#6 2016-10-17 16:46:18

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED] xset led doesn't work (on wayland...)

Forget about doing this as root, won't work (easily with sudo) and must not be required.
What's the output of "xset q | grep LED" resp. does "xset -led 3; sleep 1; xset led 3" get you somewhere?

And please post ~/.local/share/xorg/Xorg.*.log

Offline

#7 2016-10-17 16:56:07

twyK
Member
Registered: 2016-10-17
Posts: 12

Re: [SOLVED] xset led doesn't work (on wayland...)

seth wrote:

Forget about doing this as root, won't work (easily with sudo) and must not be required.
What's the output of "xset q | grep LED" resp. does "xset -led 3; sleep 1; xset led 3" get you somewhere?

The output is:
grep: LED resp. does xset: File or directory does not exists
grep: 3: File or directory does not exists

seth wrote:

And please post ~/.local/share/xorg/Xorg.*.log

http://pastebin.com/HDdupz02

Offline

#8 2016-10-17 17:04:06

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED] xset led doesn't work (on wayland...)

Maybe try

xset q | grep LED

and also

xset -led 3; sleep 1; xset led 3

Welcome to linux.

Offline

#9 2016-10-17 17:08:09

twyK
Member
Registered: 2016-10-17
Posts: 12

Re: [SOLVED] xset led doesn't work (on wayland...)

seth wrote:

Maybe try

xset q | grep LED

Output:
auto repeat:  on    key click percent:  0    LED mask:  00000006

seth wrote:

and also

xset -led 3; sleep 1; xset led 3

Nothing happened sad

seth wrote:

Welcome to linux.

Thanks you xD

Offline

#10 2016-10-17 17:08:28

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED] xset led doesn't work (on wayland...)

Looking at the xorg logs, also the output of

xinput

and try to unplug the headset.

Offline

#11 2016-10-17 17:09:31

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED] xset led doesn't work (on wayland...)

LED mask:  00000006

This means the scroll lock led is considered active by the system (and numlock)

Offline

#12 2016-10-17 17:13:44

twyK
Member
Registered: 2016-10-17
Posts: 12

Re: [SOLVED] xset led doesn't work (on wayland...)

seth wrote:

LED mask:  00000006

This means the scroll lock led is considered active by the system (and numlock)

I tried also to turn on the keyboard LED on GRUB and it works correctly...

So how i can do? >.<

Offline

#13 2016-10-17 17:15:40

seth
Member
Registered: 2012-09-03
Posts: 51,017

Offline

#14 2016-10-17 17:17:35

twyK
Member
Registered: 2016-10-17
Posts: 12

Re: [SOLVED] xset led doesn't work (on wayland...)

Ops, didn't see that.

xinput output:
⎡ Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]
⎜   ↳ xwayland-pointer:13                         id=6    [slave  pointer  (2)]
⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                 id=5    [slave  keyboard (3)]
    ↳ xwayland-keyboard:13                        id=7    [slave  keyboard (3)]

Now i try to unplug the headset big_smile

EDIT: Un-plugging the headset don't change anything

Last edited by twyK (2016-10-17 17:19:26)

Offline

#15 2016-10-17 17:23:20

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED] xset led doesn't work (on wayland...)

Do you run gnome on wayland?

Offline

#16 2016-10-17 17:28:28

twyK
Member
Registered: 2016-10-17
Posts: 12

Re: [SOLVED] xset led doesn't work (on wayland...)

seth wrote:

Do you run gnome on wayland?

I dont know what is wayland, but i have gnome smile

Offline

#17 2016-10-17 17:30:25

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED] xset led doesn't work (on wayland...)

wayland is an alternative display server and presently the default for gnome. You'll have to select gnome on X11 or similar on login.
At least it's not much of a surprise that xset cannot effectively control your keyboard on wayland.

Offline

#18 2016-10-17 17:32:38

twyK
Member
Registered: 2016-10-17
Posts: 12

Re: [SOLVED] xset led doesn't work (on wayland...)

seth wrote:

wayland is an alternative display server and presently the default for gnome. You'll have to select gnome on X11 or similar on login.
At least it's not much of a surprise that xset cannot effectively control your keyboard on wayland.

I dont have similiar choice on gnome login, how i can switch manually?

Offline

#19 2016-10-17 17:36:46

seth
Member
Registered: 2012-09-03
Posts: 51,017

Offline

#20 2016-10-17 17:38:30

twyK
Member
Registered: 2016-10-17
Posts: 12

Re: [SOLVED] xset led doesn't work (on wayland...)

Thanks you, i'll try this right now big_smile

Offline

#21 2016-10-17 17:40:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: [SOLVED] xset led doesn't work (on wayland...)

*Headdesk*  No wonder my stuff was hosed.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#22 2016-10-17 17:45:53

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED] xset led doesn't work (on wayland...)

I'd say that Arch should revert the default against upstream.
It's premature and fucks with every noob while developers (which require it) will be able to find it.
If there was at least a big fat warning or a fixed wallpaper with every login....

Also there maybe should be a sticky in the forum: "before you post, do you run gnome on wayland?" because everything that's more involved with X11 will behave oddly for sure.

Offline

#23 2016-10-17 17:45:57

twyK
Member
Registered: 2016-10-17
Posts: 12

Re: [SOLVED] xset led doesn't work (on wayland...)

It Works!

ewaller wrote:

*Headdesk*  No wonder my stuff was hosed.

Ahaha thanks to you too, now you can close!

Offline

#24 2016-10-17 17:47:24

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED] xset led doesn't work (on wayland...)

You can. Edit your original post, prepend [SOLVED] to the title and maybe append "(on wayland)" or some such.

Offline

#25 2016-10-17 17:50:15

twyK
Member
Registered: 2016-10-17
Posts: 12

Re: [SOLVED] xset led doesn't work (on wayland...)

seth wrote:

You can. Edit your original post, prepend [SOLVED] to the title and maybe append "(on wayland)" or some such.

Done! Thanks You another time!

Offline

Board footer

Powered by FluxBB