Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-01-01 12:15:17

toywood
Member
Registered: 2024-01-01
Posts: 8

chromebook backlight hot key can not control brightness [SOLVED]

hello!
      I running debian-live 12 xfce desktop on my chromebook--asus flip c302.The little smart machine running perfect,but the chromebook's backlight key isn't on function.
      I changed the keyboard laylout from default pc-105 to chromebook,use the xfce setting panel -->keyboard to select chromebook's keyboard,it do nothing.I copy the ~/.Xmodmap file from the archlinux wiki:
https://wiki.archlinux.org/title/ASUS_C302 ,to modify the pc-105's backlight keycode 232/233 to chromebook's 72/73,and run xmodmap ~/.Xmodmap,to change the keycode-keysmybl(72/73--XF86MonBrightnessDown/Up).but it isn't function.I also try logout and in to take effect ,after two change is done,but backlight do nothing change,but sound volume take effect,the voice bar is appeared and moving when sound volume key put down.The backlight bar isn't appeared and brightness isn't changed, when backlightkey is put down.
      The backlight bar in the desktop's corner can be slide by mouse to  control the screen's backlight,and /sys/class/backlight/ have the intel's card, the graphics driver is normal on function.
       I seach the keyword chromebook and backlight key in this xfce forum,and find the topic:https://forum.xfce.org/viewtopic.php?id=12164 ,he has the same backkey problem.I run :xfce4-power-manager -q & xfce4-power-manager --no-daemon --debug in xterm,to find xfpm_button_xevent_key() Grabbed the backkey()Grabbed keycode 72/73,but when i put down the backlightkey 72/73,xterm output nothing.I post the output:
xebian@xebian:~$ xfce4-power-manager --no-daemon --debug
TRACE[xfpm-main.c:210] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for general-notification
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-exponential
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for hibernate-button-action
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for sleep-button-action
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for battery-button-action
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for lid-action-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-slider-min-level
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for dpms-sleep-mode
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for inactivity-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for inactivity-on-battery
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for network-manager-sleep
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-power-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-suspend-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-hibernate-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for heartbeat-command
TRACE[xfpm-polkit.c:289] xfpm_polkit_init_data(): Using unix session polkit subject
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 734108>, 'start-time': <uint64 16726804>}), 'org.freedesktop.login1.power-off', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.power-off is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 734108>, 'start-time': <uint64 16726804>}), 'org.freedesktop.login1.reboot', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.reboot is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 734108>, 'start-time': <uint64 16726804>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 734108>, 'start-time': <uint64 16726804>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=TRUE
TRACE[xfpm-power.c:929] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/line_power_AC
TRACE[xfpm-power.c:888] xfpm_power_add_device(): 'line-power' device added
TRACE[xfpm-power.c:929] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-power.c:888] xfpm_power_add_device(): 'battery' device added
TRACE[xfpm-power.c:897] xfpm_power_add_device(): Battery device type 'battery' detected at: /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)

(xfce4-power-manager:734108): xfce4-power-manager-WARNING **: 19:52:24.697: could not map keysym 1008ffa8 to keycode

TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
TRACE[xfpm-power.c:209] xfpm_power_check_polkit_auth(): using logind suspend backend
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 734108>, 'start-time': <uint64 16726804>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 734108>, 'start-time': <uint64 16726804>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=TRUE
TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Prev Timeout: 0 / New Timeout: 600
TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Prev Timeout: 600 / New Timeout: 0
TRACE[xfpm-manager.c:650] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch

** (xfce4-power-manager:734108): WARNING **: 19:52:24.715: No outputs have backlight property
xfce4-power-manager-Message: 19:52:24.753: Set kernel brightness switch to 0
TRACE[xfpm-backlight.c:269] xfpm_backlight_brightness_on_ac_settings_changed(): Alarm on ac timeout changed 9
TRACE[xfpm-backlight.c:290] xfpm_backlight_brightness_on_battery_settings_changed(): Alarm on battery timeout changed 9

(xfce4-power-manager:734108): xfconf-WARNING **: 19:52:24.761: Failed to set property "xfce4-power-manager::/xfce4-power-manager/brightness-switch": 操作被取消
xfce4-power-manager-Message: 19:52:24.791: Set kernel brightness switch to 0
^CTRACE[xfpm-main.c:68] xfpm_quit_signal(): sig 2
TRACE[xfpm-manager.c:942] xfpm_manager_stop(): Stopping
TRACE[xfpm-manager.c:261] xfpm_manager_quit(): Exiting
xfce4-power-manager-Message: 19:52:36.370: Restored brightness switch value to: 1
TRACE[xfpm-polkit.c:237] xfpm_polkit_free_data(): Destroying Polkit data
xebian@xebian:~

I have use xev to verify the chromebook backlight keycode is 72/73,and as if the keycode is not grab by xfpm_manager.
.I think chromebook is more and more popular now,and chromebook layout is popular,the issue is affect the usage of the xfce desktop on  chromebook.I hope to find out what privent from use the kind xfce desktop. I want to use backlight key to control power-manager's bar at desktop core as the sound volume control the pulse audio bar to do.

Let me know what other info I can provide and what can i do to help debugging this.
thanks

jh.wen

Last edited by toywood (2024-01-27 07:23:41)

Offline

#2 2024-01-01 13:25:25

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: chromebook backlight hot key can not control brightness [SOLVED]

Hello and welcome.

If you run "xmodmap -pk", you should see:

    232    	0x1008ff03 (XF86MonBrightnessDown)	0x0000 (NoSymbol)	0x1008ff03 (XF86MonBrightnessDown)	
    233    	0x1008ff02 (XF86MonBrightnessUp)	0x0000 (NoSymbol)	0x1008ff02 (XF86MonBrightnessUp)	

But your system is generating:

     72    	0xffc3 (F6)	0xffc3 (F6)	0xffc3 (F6)	0xffc3 (F6)	0xffc3 (F6)	0xffc3 (F6)	0x1008fe06 (XF86Switch_VT_6)	
     73    	0xffc4 (F7)	0xffc4 (F7)	0xffc4 (F7)	0xffc4 (F7)	0xffc4 (F7)	0xffc4 (F7)	0x1008fe07 (XF86Switch_VT_7)

Are you also pressing the Function (Fn) key at the same time? If you do, what keycode does the system generate?

Does this laptop have some sort of function-lock button? Or inverted function keys?

If not, you can also map some command (like xbacklight) to the F6/F7 keys to mimic the behaviour.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-01-01 13:28:09

toywood
Member
Registered: 2024-01-01
Posts: 8

Re: chromebook backlight hot key can not control brightness [SOLVED]

sorry ,the up post message is before change the~/.Xmodmap.add the .Xmodmap ,and run  xfce4-power-manager --no-daemon --debug ,output is here:
xebian@xebian:~$ xfce4-power-manager --no-daemon --debug
TRACE[xfpm-main.c:210] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for general-notification
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-exponential
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for hibernate-button-action
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for sleep-button-action
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for battery-button-action
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for lid-action-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-slider-min-level
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for dpms-sleep-mode
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for inactivity-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for inactivity-on-battery
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for network-manager-sleep
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-power-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-suspend-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-hibernate-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for heartbeat-command
TRACE[xfpm-polkit.c:289] xfpm_polkit_init_data(): Using unix session polkit subject
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 777411>, 'start-time': <uint64 17260868>}), 'org.freedesktop.login1.power-off', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.power-off is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 777411>, 'start-time': <uint64 17260868>}), 'org.freedesktop.login1.reboot', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.reboot is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 777411>, 'start-time': <uint64 17260868>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 777411>, 'start-time': <uint64 17260868>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=TRUE
TRACE[xfpm-power.c:929] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/line_power_AC
TRACE[xfpm-power.c:888] xfpm_power_add_device(): 'line-power' device added
TRACE[xfpm-power.c:929] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-power.c:888] xfpm_power_add_device(): 'battery' device added
TRACE[xfpm-power.c:897] xfpm_power_add_device(): Battery device type 'battery' detected at: /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)

(xfce4-power-manager:777411): xfce4-power-manager-WARNING **: 21:21:25.436: could not map keysym 1008ffa8 to keycode

TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 73 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 72 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
TRACE[xfpm-power.c:209] xfpm_power_check_polkit_auth(): using logind suspend backend
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 777411>, 'start-time': <uint64 17260868>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 777411>, 'start-time': <uint64 17260868>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=TRUE
TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Prev Timeout: 0 / New Timeout: 600
TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Prev Timeout: 600 / New Timeout: 0
TRACE[xfpm-manager.c:650] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch

** (xfce4-power-manager:777411): WARNING **: 21:21:25.456: No outputs have backlight property
xfce4-power-manager-Message: 21:21:25.494: Set kernel brightness switch to 0
TRACE[xfpm-backlight.c:269] xfpm_backlight_brightness_on_ac_settings_changed(): Alarm on ac timeout changed 9
TRACE[xfpm-backlight.c:290] xfpm_backlight_brightness_on_battery_settings_changed(): Alarm on battery timeout changed 9

(xfce4-power-manager:777411): xfconf-WARNING **: 21:21:25.503: Failed to set property "xfce4-power-manager::/xfce4-power-manager/brightness-switch": 操作被取消
xfce4-power-manager-Message: 21:21:25.534: Set kernel brightness switch to 0
^CTRACE[xfpm-main.c:68] xfpm_quit_signal(): sig 2                             
TRACE[xfpm-manager.c:942] xfpm_manager_stop(): Stopping
TRACE[xfpm-manager.c:261] xfpm_manager_quit(): Exiting
xfce4-power-manager-Message: 21:22:15.436: Restored brightness switch value to: 1
TRACE[xfpm-polkit.c:237] xfpm_polkit_free_data(): Destroying Polkit data

Offline

#4 2024-01-01 13:46:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: chromebook backlight hot key can not control brightness [SOLVED]

Ok, so it is grabbing the correct key.

and /sys/class/backlight/ have the intel's card, the graphics driver is normal on function.

ls /sys/class/backlight/

Is there only one backlight interface listed?

Also:

xfce4-power-manager --dump

And one more:

xfconf-query -c xfce4-power-manager -lv

Last edited by ToZ (2024-01-01 13:50:09)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2024-01-01 14:52:26

toywood
Member
Registered: 2024-01-01
Posts: 8

Re: chromebook backlight hot key can not control brightness [SOLVED]

Thank you for your kind!And so grateful work for xfce desktop,the little and smart software!
Here is my reply

1,Ok, so it is grabbing the correct key.
yes ,as if it recognize the .Xmodmap

2, /sys/class/backlight/ have the intel's card, the graphics driver is normal on function.

ls /sys/class/backlight/
Is there only one backlight interface listed?
yes.shell post:
xebian@xebian:~$ ls /sys/class/backlight/
intel_backlight

Also:
xfce4-power-manager --dump
xterm post here:
xebian@xebian:~$ xfce4-power-manager --dump

(xfce4-power-manager:818920): Gtk-WARNING **: 22:46:55.990: Locale not supported by C library.
    Using the fallback 'C' locale.

(xfce4-power-manager:818920): xfce4-power-manager-WARNING **: 22:46:56.289: could not map keysym 1008ffa8 to keycode


** (xfce4-power-manager:818920): WARNING **: 22:46:56.314: No outputs have backlight property
xfce4-power-manager-Message: 22:46:56.359: Set kernel brightness switch to 0
---------------------------------------------------
       Xfce power manager version 4.18.2
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: True
Authorized to suspend: True
Authorized to hibernate: True
Authorized to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has battery button: True
Has LID: True

(xfce4-power-manager:818920): xfconf-WARNING **: 22:46:56.367: Failed to set property "xfce4-power-manager::/xfce4-power-manager/brightness-switch": Operation was cancelled
xfce4-power-manager-Message: 22:46:56.398: Set kernel brightness switch to 0

4,xfconf-query -c xfce4-power-manager -lv
xterm output:
xebian@xebian:~$ xfconf-query -c xfce4-power-manager -lv
/xfce4-power-manager/blank-on-ac                        0
/xfce4-power-manager/blank-on-battery                   0
/xfce4-power-manager/brightness-level-on-ac             1
/xfce4-power-manager/brightness-level-on-battery        1
/xfce4-power-manager/brightness-on-battery              9
/xfce4-power-manager/brightness-step-count              15
/xfce4-power-manager/brightness-switch                  0
/xfce4-power-manager/brightness-switch-restore-on-exit  -1
/xfce4-power-manager/critical-power-action              3
/xfce4-power-manager/critical-power-level               20
/xfce4-power-manager/dpms-enabled                       true
/xfce4-power-manager/dpms-on-ac-off                     0
/xfce4-power-manager/dpms-on-ac-sleep                   0
/xfce4-power-manager/dpms-on-battery-off                0
/xfce4-power-manager/dpms-on-battery-sleep              0
/xfce4-power-manager/handle-brightness-keys             true
/xfce4-power-manager/inactivity-sleep-mode-on-ac        1
/xfce4-power-manager/inactivity-sleep-mode-on-battery   1
/xfce4-power-manager/lid-action-on-battery              1
/xfce4-power-manager/lock-screen-suspend-hibernate      false
/xfce4-power-manager/logind-handle-lid-switch           false
/xfce4-power-manager/power-button-action                3
/xfce4-power-manager/show-tray-icon

If i can do anything forward ,please tell me,wo want to run xfce perfectly on all of the chromebook:)
Thank you very much!

jh.wen

Offline

#6 2024-01-01 15:25:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: chromebook backlight hot key can not control brightness [SOLVED]

I came across this older bug report of a very similar problem. There is some interesting/helpful information there that can help bring a resolution to your issue.

In order to fix this issue in Xfce, since you can replicate the problem, you should create a bug report against xfce4-power-manager and reference both that original bug report and this thread for information.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2024-01-01 23:14:10

toywood
Member
Registered: 2024-01-01
Posts: 8

Re: chromebook backlight hot key can not control brightness [SOLVED]

Thank you for your professional answer!My friend.The issue you give me is same to my xfce desktop.The xterm run:xebian@xebian:~$ xfce4-power-manager --no-daemon --debug ,output the rusult is same.And I also test the backlight key with xev and evtest.xev testing comfirm backlight key code is 72/73.But evtest output the code is 64/65,it is different as 72/73.is this code as keycode? I post the xterm output,and the last two is ctrl-c interrupt :
xebian@xebian:~$ sudo evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:    AT Translated Set 2 keyboard
/dev/input/event1:    Lid Switch
/dev/input/event2:    Power Button
/dev/input/event3:    Power Button
/dev/input/event4:    Elan Touchpad
Select the device event number [0-4]: 0
Input driver version is 1.0.1
Input device ID: bus 0x11 vendor 0x1 product 0x1 version 0xab83
Input device name: "AT Translated Set 2 keyboard"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 1 (KEY_ESC)
    Event code 2 (KEY_1)
    Event code 3 (KEY_2)
    Event code 4 (KEY_3)
    Event code 5 (KEY_4)
    Event code 6 (KEY_5)
    Event code 7 (KEY_6)
    Event code 8 (KEY_7)
    Event code 9 (KEY_8)
    Event code 10 (KEY_9)
    Event code 11 (KEY_0)
    Event code 12 (KEY_MINUS)
    Event code 13 (KEY_EQUAL)
    Event code 14 (KEY_BACKSPACE)
    Event code 15 (KEY_TAB)
    Event code 16 (KEY_Q)
    Event code 17 (KEY_W)
    Event code 18 (KEY_E)
    Event code 19 (KEY_R)
    Event code 20 (KEY_T)
    Event code 21 (KEY_Y)
    Event code 22 (KEY_U)
    Event code 23 (KEY_I)
    Event code 24 (KEY_O)
    Event code 25 (KEY_P)
    Event code 26 (KEY_LEFTBRACE)
    Event code 27 (KEY_RIGHTBRACE)
    Event code 28 (KEY_ENTER)
    Event code 29 (KEY_LEFTCTRL)
    Event code 30 (KEY_A)
    Event code 31 (KEY_S)
    Event code 32 (KEY_D)
    Event code 33 (KEY_F)
    Event code 34 (KEY_G)
    Event code 35 (KEY_H)
    Event code 36 (KEY_J)
    Event code 37 (KEY_K)
    Event code 38 (KEY_L)
    Event code 39 (KEY_SEMICOLON)
    Event code 40 (KEY_APOSTROPHE)
    Event code 41 (KEY_GRAVE)
    Event code 42 (KEY_LEFTSHIFT)
    Event code 43 (KEY_BACKSLASH)
    Event code 44 (KEY_Z)
    Event code 45 (KEY_X)
    Event code 46 (KEY_C)
    Event code 47 (KEY_V)
    Event code 48 (KEY_B)
    Event code 49 (KEY_N)
    Event code 50 (KEY_M)
    Event code 51 (KEY_COMMA)
    Event code 52 (KEY_DOT)
    Event code 53 (KEY_SLASH)
    Event code 54 (KEY_RIGHTSHIFT)
    Event code 55 (KEY_KPASTERISK)
    Event code 56 (KEY_LEFTALT)
    Event code 57 (KEY_SPACE)
    Event code 58 (KEY_CAPSLOCK)
    Event code 59 (KEY_F1)
    Event code 60 (KEY_F2)
    Event code 61 (KEY_F3)
    Event code 62 (KEY_F4)
    Event code 63 (KEY_F5)
    Event code 64 (KEY_F6)
    Event code 65 (KEY_F7)
    Event code 66 (KEY_F8)
    Event code 67 (KEY_F9)
    Event code 68 (KEY_F10)
    Event code 69 (KEY_NUMLOCK)
    Event code 70 (KEY_SCROLLLOCK)
    Event code 71 (KEY_KP7)
    Event code 72 (KEY_KP8)
    Event code 73 (KEY_KP9)
    Event code 74 (KEY_KPMINUS)
    Event code 75 (KEY_KP4)
    Event code 76 (KEY_KP5)
    Event code 77 (KEY_KP6)
    Event code 78 (KEY_KPPLUS)
    Event code 79 (KEY_KP1)
    Event code 80 (KEY_KP2)
    Event code 81 (KEY_KP3)
    Event code 82 (KEY_KP0)
    Event code 83 (KEY_KPDOT)
    Event code 85 (KEY_ZENKAKUHANKAKU)
    Event code 86 (KEY_102ND)
    Event code 87 (KEY_F11)
    Event code 88 (KEY_F12)
    Event code 89 (KEY_RO)
    Event code 90 (KEY_KATAKANA)
    Event code 91 (KEY_HIRAGANA)
    Event code 92 (KEY_HENKAN)
    Event code 93 (KEY_KATAKANAHIRAGANA)
    Event code 94 (KEY_MUHENKAN)
    Event code 95 (KEY_KPJPCOMMA)
    Event code 96 (KEY_KPENTER)
    Event code 97 (KEY_RIGHTCTRL)
    Event code 98 (KEY_KPSLASH)
    Event code 99 (KEY_SYSRQ)
    Event code 100 (KEY_RIGHTALT)
    Event code 102 (KEY_HOME)
    Event code 103 (KEY_UP)
    Event code 104 (KEY_PAGEUP)
    Event code 105 (KEY_LEFT)
    Event code 106 (KEY_RIGHT)
    Event code 107 (KEY_END)
    Event code 108 (KEY_DOWN)
    Event code 109 (KEY_PAGEDOWN)
    Event code 110 (KEY_INSERT)
    Event code 111 (KEY_DELETE)
    Event code 112 (KEY_MACRO)
    Event code 113 (KEY_MUTE)
    Event code 114 (KEY_VOLUMEDOWN)
    Event code 115 (KEY_VOLUMEUP)
    Event code 116 (KEY_POWER)
    Event code 117 (KEY_KPEQUAL)
    Event code 118 (KEY_KPPLUSMINUS)
    Event code 119 (KEY_PAUSE)
    Event code 121 (KEY_KPCOMMA)
    Event code 122 (KEY_HANGUEL)
    Event code 123 (KEY_HANJA)
    Event code 124 (KEY_YEN)
    Event code 125 (KEY_LEFTMETA)
    Event code 126 (KEY_RIGHTMETA)
    Event code 127 (KEY_COMPOSE)
    Event code 128 (KEY_STOP)
    Event code 140 (KEY_CALC)
    Event code 142 (KEY_SLEEP)
    Event code 143 (KEY_WAKEUP)
    Event code 155 (KEY_MAIL)
    Event code 156 (KEY_BOOKMARKS)
    Event code 157 (KEY_COMPUTER)
    Event code 158 (KEY_BACK)
    Event code 159 (KEY_FORWARD)
    Event code 163 (KEY_NEXTSONG)
    Event code 164 (KEY_PLAYPAUSE)
    Event code 165 (KEY_PREVIOUSSONG)
    Event code 166 (KEY_STOPCD)
    Event code 172 (KEY_HOMEPAGE)
    Event code 173 (KEY_REFRESH)
    Event code 183 (KEY_F13)
    Event code 184 (KEY_F14)
    Event code 185 (KEY_F15)
    Event code 217 (KEY_SEARCH)
    Event code 226 (KEY_MEDIA)
  Event type 4 (EV_MSC)
    Event code 4 (MSC_SCAN)
  Event type 17 (EV_LED)
    Event code 0 (LED_NUML) state 0
    Event code 1 (LED_CAPSL) state 0
    Event code 2 (LED_SCROLLL) state 0
Key repeat handling:
  Repeat type 20 (EV_REP)
    Repeat code 0 (REP_DELAY)
      Value    250
    Repeat code 1 (REP_PERIOD)
      Value     33
Properties:
Testing ... (interrupt to exit)
Event: time 1704149868.788491, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1c
Event: time 1704149868.788491, type 1 (EV_KEY), code 28 (KEY_ENTER), value 0
Event: time 1704149868.788491, -------------- SYN_REPORT ------------
Event: time 1704149875.441203, type 4 (EV_MSC), code 4 (MSC_SCAN), value 40
Event: time 1704149875.441203, type 1 (EV_KEY), code 64 (KEY_F6), value 1
Event: time 1704149875.441203, -------------- SYN_REPORT ------------
^[[17~Event: time 1704149875.566731, type 4 (EV_MSC), code 4 (MSC_SCAN), value 40
Event: time 1704149875.566731, type 1 (EV_KEY), code 64 (KEY_F6), value 0
Event: time 1704149875.566731, -------------- SYN_REPORT ------------
Event: time 1704149877.318256, type 4 (EV_MSC), code 4 (MSC_SCAN), value 41
Event: time 1704149877.318256, type 1 (EV_KEY), code 65 (KEY_F7), value 1
Event: time 1704149877.318256, -------------- SYN_REPORT ------------
^[[18~Event: time 1704149877.438520, type 4 (EV_MSC), code 4 (MSC_SCAN), value 41
Event: time 1704149877.438520, type 1 (EV_KEY), code 65 (KEY_F7), value 0
Event: time 1704149877.438520, -------------- SYN_REPORT ------------
Event: time 1704149884.549566, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1d
Event: time 1704149884.549566, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1
Event: time 1704149884.549566, -------------- SYN_REPORT ------------
Event: time 1704149884.746609, type 4 (EV_MSC), code 4 (MSC_SCAN), value 2e
Event: time 1704149884.746609, type 1 (EV_KEY), code 46 (KEY_C), value 1
Event: time 1704149884.746609, -------------- SYN_REPORT ------------
^C
xebian@xebian:~$

You give me a very good link so quikly and so same,I am very appreciated for your professional advice!

jh.wen

Offline

#8 2024-01-02 00:07:07

toywood
Member
Registered: 2024-01-01
Posts: 8

Re: chromebook backlight hot key can not control brightness [SOLVED]

And i have test on my another samsung superbook,use the same run xmodmap ~/.Xmodmap to change the Fn key from pc-105 default keycode 232/233 to F9/F10 keycode,logout an in,and it is success,function key work on this book.The diffrent is samsung book has the function before,and i just change frome fn+f2/f3 to f9/f10,and this change is worked.The chromebook hasn't the backlight control function from begin.
      I guess it happen with the chromebook keyboard fn key layout different from pc-105,So when system boot from begin,the xfce system did not set up the backlight link to backlight key.I check the xfce power manager c-code on github even if,and have diffcult to read.I want to debug it to find out the debug output to post issue.

Offline

#9 2024-01-02 01:18:28

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 528

Re: chromebook backlight hot key can not control brightness [SOLVED]

I have to ask, have you allowed power manager to handle screen brightness?

settings>>power manager>>general>>handle display brightness keys on/off


Siduction
Debian Sid
Xfce 4.18

Online

#10 2024-01-02 02:25:34

toywood
Member
Registered: 2024-01-01
Posts: 8

Re: chromebook backlight hot key can not control brightness [SOLVED]

eriefisher wrote:

I have to ask, have you allowed power manager to handle screen brightness?

settings>>power manager>>general>>handle display brightness keys on/off

       Yes,I  noticed the settings>>power manager>>general>>handle display brightness keys on/off .And actived it.On samsungbook ,it affect.When it inactive, backlightkey can move bar,but screen brightness can not change,as it active,the two thing function both.
     
      The different:
      Samsungbook has a pc-105 keyboard layout,it is linux default keyboard layout,and it can control backlight with Fn+f2/f3(it is pc-105 default backlight key,keycode is 232/233 ) at system boot into desktop and can changed frome fn+f2/f3 to f9/f10 after logout &in.
      chromebook has not a physic linux default backlight key(keycode:232/233).So  it can not control backlight with chromebook backlight key(keycode is 72/73 ) at system boot into desktop and do nothing,after run xmodmap to change keycode frome k232/233(pc-105 default backlight keycode) to chromebook backlight key(keycode is 72/73 )  and logout &in.

Offline

#11 2024-01-02 03:19:14

toywood
Member
Registered: 2024-01-01
Posts: 8

Re: chromebook backlight hot key can not control brightness [SOLVED]

ToZ wrote:

I came across this older bug report of a very similar problem. There is some interesting/helpful information there that can help bring a resolution to your issue.

In order to fix this issue in Xfce, since you can replicate the problem, you should create a bug report against xfce4-power-manager and reference both that original bug report and this thread for information.


I will try to change the xkeyboard-config to repair the problem,if it can resolve,i will reply in this topic.because chromebook is very popular now ,and it is smart and little like the xfce, the two brother or sister is so perfect, i am sorry for my poor english to my opinion.

Thank you very much! it spend me several day to seach and find out,your work is worthy valuable and so professional!

jh.wen

Offline

#12 2024-01-27 07:18:28

toywood
Member
Registered: 2024-01-01
Posts: 8

Re: chromebook backlight hot key can not control brightness [SOLVED]

Hi!After i try @ToZ 's advise,the backlight hotkey functioned,Thank u!@ToZ.Actrually,another topic give a better doing as copy the whole /usr/share/X11/xkb directory's files  in the galliumos iso to the you system respond directory:/usr/share/X11/xkb.The link:https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues/134  The xkb zip  i maked can be download  for need: https://caiyun.139.com/m/i?105CfTZSPimNK  password:tDNw  The chromebook's user can search chultrabook for sound and other issue.

Last edited by toywood (2024-01-27 09:28:23)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 711.48 KiB (Peak: 760.77 KiB) ]