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

Keyboard Backlight control issues: LULU, GANDOF, ... #176

Closed
jdferron opened this Issue Feb 26, 2016 · 15 comments

Comments

Projects
None yet
6 participants
@jdferron
Copy link

jdferron commented Feb 26, 2016

Using the default keyboard binding in beta2, I cannot disable the keyboard backlight using the right-alt+0 combination. I have also noticed is that control + media keys = Function Keys, not Right-Alt + Media Key = Function Keys.

Here is the output from xev when trying the right-alt + 0 combination.

Reference Issue: #68

XEV OUTPUT
jeff@rye:~$ xev
Outer window is 0x4000001, inner window is 0x4000002

PropertyNotify event, serial 8, synthetic NO, window 0x4000001,
atom 0x27 (WM_NAME), time 1570552, state PropertyNewValue

PropertyNotify event, serial 9, synthetic NO, window 0x4000001,
atom 0x22 (WM_COMMAND), time 1570552, state PropertyNewValue

PropertyNotify event, serial 10, synthetic NO, window 0x4000001,
atom 0x28 (WM_NORMAL_HINTS), time 1570552, state PropertyNewValue

CreateNotify event, serial 11, synthetic NO, window 0x4000001,
parent 0x4000001, window 0x4000002, (10,10), width 50, height 50
border_width 4, override NO

PropertyNotify event, serial 14, synthetic NO, window 0x4000001,
atom 0x1cc (WM_PROTOCOLS), time 1570552, state PropertyNewValue

MapNotify event, serial 15, synthetic NO, window 0x4000001,
event 0x4000001, window 0x4000002, override NO

PropertyNotify event, serial 18, synthetic NO, window 0x4000001,
atom 0x1da (_NET_WM_STATE), time 1570553, state PropertyNewValue

PropertyNotify event, serial 18, synthetic NO, window 0x4000001,
atom 0x1d4 (_NET_WM_DESKTOP), time 1570553, state PropertyNewValue

ConfigureNotify event, serial 18, synthetic NO, window 0x4000001,
event 0x4000001, window 0x4000001, (0,0), width 178, height 178,
border_width 0, above 0xe01569, override NO

ReparentNotify event, serial 18, synthetic NO, window 0x4000001,
event 0x4000001, window 0x4000001, parent 0xc02a61,
(1,24), override NO

ConfigureNotify event, serial 18, synthetic NO, window 0x4000001,
event 0x4000001, window 0x4000001, (1,24), width 178, height 178,
border_width 0, above 0xc02a70, override NO

ConfigureNotify event, serial 18, synthetic YES, window 0x4000001,
event 0x4000001, window 0x4000001, (871,445), width 178, height 178,
border_width 0, above 0x0, override NO

MapNotify event, serial 18, synthetic NO, window 0x4000001,
event 0x4000001, window 0x4000001, override NO

VisibilityNotify event, serial 18, synthetic NO, window 0x4000001,
state VisibilityUnobscured

Expose event, serial 18, synthetic NO, window 0x4000001,
(0,0), width 178, height 10, count 3

Expose event, serial 18, synthetic NO, window 0x4000001,
(0,10), width 10, height 58, count 2

Expose event, serial 18, synthetic NO, window 0x4000001,
(68,10), width 110, height 58, count 1

Expose event, serial 18, synthetic NO, window 0x4000001,
(0,68), width 178, height 110, count 0

PropertyNotify event, serial 18, synthetic NO, window 0x4000001,
atom 0x1f2 (WM_STATE), time 1570554, state PropertyNewValue

PropertyNotify event, serial 18, synthetic NO, window 0x4000001,
atom 0x22a (_NET_WM_ALLOWED_ACTIONS), time 1570554, state PropertyNewValue

PropertyNotify event, serial 18, synthetic NO, window 0x4000001,
atom 0x1da (_NET_WM_STATE), time 1570554, state PropertyNewValue

FocusIn event, serial 18, synthetic NO, window 0x4000001,
mode NotifyNormal, detail NotifyNonlinear

KeymapNotify event, serial 18, synthetic NO, window 0x0,
keys: 4294967227 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

PropertyNotify event, serial 18, synthetic NO, window 0x4000001,
atom 0x1d1 (_NET_FRAME_EXTENTS), time 1570554, state PropertyNewValue

PropertyNotify event, serial 18, synthetic NO, window 0x4000001,
atom 0x1da (_NET_WM_STATE), time 1570554, state PropertyNewValue

PropertyNotify event, serial 18, synthetic NO, window 0x4000001,
atom 0x1da (_NET_WM_STATE), time 1570555, state PropertyNewValue

PropertyNotify event, serial 33, synthetic NO, window 0x4000001,
atom 0x22d (_NET_WM_ICON_GEOMETRY), time 1570564, state PropertyNewValue

KeyRelease event, serial 34, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1570651, (-789,625), root:(82,1070),
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1572874, (-789,625), root:(82,1070),
state 0x0, keycode 108 (keysym 0xfe78, Overlay1_Enable), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1573620, (-789,625), root:(82,1070),
state 0x0, keycode 108 (keysym 0xfe78, Overlay1_Enable), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1574870, (-789,625), root:(82,1070),
state 0x0, keycode 108 (keysym 0xfe78, Overlay1_Enable), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1575033, (-789,625), root:(82,1070),
state 0x0, keycode 236 (keysym 0x1008ff04, XF86KbdLightOnOff), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1575184, (-789,625), root:(82,1070),
state 0x0, keycode 236 (keysym 0x1008ff04, XF86KbdLightOnOff), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1575268, (-789,625), root:(82,1070),
state 0x0, keycode 108 (keysym 0xfe78, Overlay1_Enable), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

EnterNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580466, (15,73), root:(886,518),
mode NotifyNormal, detail NotifyNonlinear, same_screen YES,
focus YES, state 0

KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 4294967258 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

MotionNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580474, (15,73), root:(886,518),
state 0x0, is_hint 0, same_screen YES

LeaveNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580474, (35,58), root:(906,503),
mode NotifyNormal, detail NotifyInferior, same_screen YES,
focus YES, state 0

MotionNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x4000002, time 1580482, (35,58), root:(906,503),
state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x4000002, time 1580490, (59,43), root:(930,488),
state 0x0, is_hint 0, same_screen YES

EnterNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580490, (74,33), root:(945,478),
mode NotifyNormal, detail NotifyInferior, same_screen YES,
focus YES, state 0

KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 4294967284 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

MotionNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580498, (74,33), root:(945,478),
state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580506, (85,26), root:(956,471),
state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580514, (100,19), root:(971,464),
state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580522, (118,12), root:(989,457),
state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580530, (133,7), root:(1004,452),
state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580539, (142,5), root:(1013,450),
state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580547, (150,3), root:(1021,448),
state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580554, (158,1), root:(1029,446),
state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580562, (165,0), root:(1036,445),
state 0x0, is_hint 0, same_screen YES

LeaveNotify event, serial 37, synthetic NO, window 0x4000001,
root 0xf4, subw 0x0, time 1580566, (170,-1), root:(1041,444),
mode NotifyNormal, detail NotifyNonlinear, same_screen YES,
focus YES, state 0

ClientMessage event, serial 37, synthetic YES, window 0x4000001,
message_type 0x1cc (WM_PROTOCOLS), format 32, message 0x1ca (WM_DELETE_WINDOW)

@jdferron

This comment has been minimized.

Copy link

jdferron commented Feb 26, 2016

I should also note my install of GaOS was beta1, then dist-upgrade to beta2.

@hugegreenbug

This comment has been minimized.

Copy link
Member

hugegreenbug commented Feb 27, 2016

It seems like the keycodes are right. Are the following modules loaded?:

chromeos_keyboard_bl
chromebook_kb_backlight

You can check with lsmod. If they aren't do you get an error message when running?:

sudo modprobe chromeos_keyboard_bl
sudo modprobe chromebook_kb_backlight

There was an update recently that fixed the script so those modules actually get loaded as before they weren't. I don't have a Lulu to test, so it is possible that something else is wrong.

@jdferron

This comment has been minimized.

Copy link

jdferron commented Feb 28, 2016

When i run lsmod, this is the output I get for the two entries:

Module Size Used by
chromebook_kb_backlight 16384 0
chromeos_keyboard_bl 16384 0
chromeos_keyboard_leds 16384 0

When I run the modprobe commands, I do not get anything back. No error message, nothing.

How else would I find errors. Is there a way I can re-run the script or debug somehow?

@hugegreenbug

This comment has been minimized.

Copy link
Member

hugegreenbug commented Feb 29, 2016

The command: journalctl shows the current log. Also, dmesg should show you something if there was an error.

The script is: /usr/bin/init-laptop-settings . It modprobes the modules and that's it.I don't think you need both the leds and the bl module.

@reynhout

This comment has been minimized.

Copy link
Member

reynhout commented Mar 3, 2016

A user on IRC reported that he can control LULU keyboard backlight with:

  • default layout ("Chromebook / Right alt overlay / F keys mapped to media keys")
  • RightAlt + = for brightness up
  • RightAlt + - for down

But he couldn't get on/off toggle to work. Does this match your experience?

EDIT: OK, I misread the initial report! Sorry. This is the state for both "currysaus" on IRC and JeffD here. :)

@jdferron

This comment has been minimized.

Copy link

jdferron commented Mar 3, 2016

reynhout, it does.

hugegreenbug, I need to get you more info. I will try and do that tonight.

@reynhout

This comment has been minimized.

Copy link
Member

reynhout commented Mar 6, 2016

Reported on IRC: same issue and state for GANDOF.

@reynhout reynhout changed the title Backlight Key Disable Combination Does Not Work on Dell CB 13 / Lulu Keyboard Backlight control issues: LULU, GANDOF, ... Mar 6, 2016

@jdferron

This comment has been minimized.

Copy link

jdferron commented Mar 7, 2016

hugegreenbug, I've finally gotten around to reviewing the logs. I cannot see any errors in either journalctl or dmesg when trying to toggle the backlight.

Anything else I should be looking for?

@hugegreenbug

This comment has been minimized.

Copy link
Member

hugegreenbug commented Mar 8, 2016

There are two issues in this issue. Do the search key keyboard maps work as expected (other than the keyboard backlight toggle)? Could you provide me with the keycode for your right alt key?

I'm not sure what to look for yet. I need to review the xfce4-power-manager code to see what it does when it detects the keyboard backlight toggle key. That is assuming that it is receiving the event in the first place. I'll start from there and then let you know what I find.

@jdferron

This comment has been minimized.

Copy link

jdferron commented Mar 8, 2016

Toggling the backlight on/off does not work with the key combination reynhout noted.

Changing the keyboard brightness does work with the key combination reynhout noted.

Here are the key codes using xev:
Overlay Key
KeyPress event, serial 37, synthetic NO, window 0x3a00001,
root 0xf4, subw 0x0, time 5124509, (159,-13), root:(1030,432),
state 0x0, keycode 108 (keysym 0xfe78, Overlay1_Enable), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x3a00001,
root 0xf4, subw 0x0, time 5125456, (159,-13), root:(1030,432),
state 0x0, keycode 108 (keysym 0xfe78, Overlay1_Enable), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

Right Control Key
KeyPress event, serial 37, synthetic NO, window 0x3a00001,
root 0xf4, subw 0x0, time 5126504, (159,-13), root:(1030,432),
state 0x0, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x3a00001,
root 0xf4, subw 0x0, time 5126959, (159,-13), root:(1030,432),
state 0x4, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

@reynhout

This comment has been minimized.

Copy link
Member

reynhout commented May 7, 2016

Issue #68 is closed, but there are recent comments there, and a patch for LULU from @brontide. Should we include it (or something like it -- see comments)?

@brontide

This comment has been minimized.

Copy link

brontide commented May 7, 2016

I pushed a ( slightly ) better patch upstream so if you pull from there you should get it.

@brontide

This comment has been minimized.

@coolstar

This comment has been minimized.

Copy link

coolstar commented May 24, 2016

@reynhout @brontide I've already pushed a patch here: GalliumOS/linux@90cd92d

@coltondrg

This comment has been minimized.

Copy link
Member

coltondrg commented Jun 20, 2017

Closing, please reopen if this issue still exists.

@coltondrg coltondrg closed this Jun 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment