The officially official Devuan Forum!

You are not logged in.

#1 2018-08-20 15:24:43

VoidPointer
Member
Registered: 2018-08-20
Posts: 4  

mate-power-manager on ascii

Hello, I've just installed Devuan Ascii with Mate, everything works except mate-power-manager:

  1. The icon in the tray is the following (the yellow one):
    tray

  2. In the context menu it shows unknown remaining time, while the tooltip correctly reports the remaining time for both batteries on my system.

  3. Suspend on lid close doesn't work, while manually suspend works

I've tried to run mate-power-manager using the cli but it shows no usefoul output.
The system is a Lenovo Thinkpad x250 with two batteries (successfully recognized by mate-power-manager) running Devuan Ascii OpenRC.

Thank you very much in advance for any answer.

Last edited by VoidPointer (2018-08-20 15:25:23)

Offline

#2 2018-08-20 15:38:59

ivanovnegro
Member
Registered: 2018-05-15
Posts: 57  

Re: mate-power-manager on ascii

Sorry that I cannot help, I can only confirm the same behavior here and I think we already mentioned it somewhere else in the forums.
It has to be some kind of bug that is still not resolved.
Before that mate-power-manager was not available for Devuan because it depended on systemd.

Offline

#3 2018-08-20 17:41:44

Ron
Member
Registered: 2018-04-22
Posts: 474  

Re: mate-power-manager on ascii

Offline

#4 2018-08-20 19:24:10

VoidPointer
Member
Registered: 2018-08-20
Posts: 4  

Re: mate-power-manager on ascii

Thanks for the fast answer. Meanwhile I've upgraded to Mate 1.20 from backports, the problem with mate-power-manager persists. I'll probably switch to xfce4-power-manager for now.

Thank you.

Offline

#5 2018-08-20 20:31:17

sgage
Member
Registered: 2016-12-01
Posts: 339  

Re: mate-power-manager on ascii

VoidPointer wrote:

Thanks for the fast answer. Meanwhile I've upgraded to Mate 1.20 from backports, the problem with mate-power-manager persists. I'll probably switch to xfce4-power-manager for now.

Thank you.

I am also running MATE 1.20 from backports, and the mate-power-manager is working fine.

Offline

#6 2018-08-21 07:00:22

VoidPointer
Member
Registered: 2018-08-20
Posts: 4  

Re: mate-power-manager on ascii

sgage wrote:

I am also running MATE 1.20 from backports, and the mate-power-manager is working fine.

Could the problem be mater-power-manager 1.16 configuration misconfiguring mate-power-manager 1.20? I'm not able to find any configuration file in ~/.config so i suppose I'll have to mess around with dconf to reset mate-power-manager configuration. Any tip on how to remove mate-power-manager configuration?

I'm sharing mate-power-manager output, maybe the could be useful fo someone:

TI:08:38:13	TH:0x556d18caba40	FI:egg-debug.c	FN:egg_debug_init,306
 - Verbose debugging 1 (on console 1)GPM_VERBOSE
TI:08:38:13	TH:0x556d18caba40	FI:gpm-main.c	FN:main,206
 - MATE Gestore alimentazione 1.20.2
TI:08:38:13	TH:0x556d18caba40	FI:gpm-session.c	FN:gpm_session_init,511
 - idle: 0, idle_inhibited: 0, suspend_inhibited: 0
TI:08:38:13	TH:0x556d18caba40	FI:gpm-session.c	FN:gpm_session_register_client,367
 - registered startup '(null)' to client id '/org/gnome/SessionManager/Client15'
TI:08:38:13	TH:0x556d18caba40	FI:gpm-manager.c	FN:gpm_manager_systemd_inhibit,1741
 - Inhibiting systemd sleep
TI:08:38:13	TH:0x556d18caba40	FI:gpm-manager.c	FN:gpm_manager_systemd_inhibit,1772
 - Inhibiting systemd sleep res = 0
TI:08:38:13	TH:0x556d18caba40	FI:gpm-manager.c	FN:gpm_manager_systemd_inhibit,1778
 - System inhibitor fd is 13
TI:08:38:13	TH:0x556d18caba40	FI:gpm-manager.c	FN:gpm_manager_systemd_inhibit,1786
 - Inhibiting systemd sleep - success
TI:08:38:13	TH:0x556d18caba40	FI:egg-console-kit.c	FN:egg_console_kit_init,412
 - ConsoleKit session ID: /org/freedesktop/ConsoleKit/Session1
TI:08:38:13	TH:0x556d18caba40	FI:gpm-button.c	FN:gpm_button_grab_keystring,176
 - Grabbed modmask=8000, keycode=124
TI:08:38:13	TH:0x556d18caba40	FI:gpm-button.c	FN:gpm_button_grab_keystring,176
 - Grabbed modmask=8000, keycode=213
TI:08:38:13	TH:0x556d18caba40	FI:gpm-button.c	FN:gpm_button_grab_keystring,176
 - Grabbed modmask=8000, keycode=150
TI:08:38:13	TH:0x556d18caba40	FI:gpm-button.c	FN:gpm_button_xevent_key,203
 - could not map keysym 1008ffa8 to keycode
TI:08:38:13	TH:0x556d18caba40	FI:gpm-button.c	FN:gpm_button_grab_keystring,176
 - Grabbed modmask=8000, keycode=233
TI:08:38:13	TH:0x556d18caba40	FI:gpm-button.c	FN:gpm_button_grab_keystring,176
 - Grabbed modmask=8000, keycode=232
TI:08:38:13	TH:0x556d18caba40	FI:gpm-button.c	FN:gpm_button_grab_keystring,176
 - Grabbed modmask=8000, keycode=160
TI:08:38:13	TH:0x556d18caba40	FI:gpm-button.c	FN:gpm_button_grab_keystring,176
 - Grabbed modmask=8000, keycode=244
TI:08:38:13	TH:0x556d18caba40	FI:gpm-button.c	FN:gpm_button_grab_keystring,176
 - Grabbed modmask=8000, keycode=238
TI:08:38:13	TH:0x556d18caba40	FI:gpm-button.c	FN:gpm_button_grab_keystring,176
 - Grabbed modmask=8000, keycode=237
TI:08:38:13	TH:0x556d18caba40	FI:gpm-button.c	FN:gpm_button_grab_keystring,176
 - Grabbed modmask=8000, keycode=236
TI:08:38:13	TH:0x556d18caba40	FI:gpm-brightness.c	FN:gpm_brightness_update_cache,841
 - watching ::monitors_changed on 0x556d18c72020
TI:08:38:13	TH:0x556d18caba40	FI:gpm-brightness.c	FN:gpm_brightness_update_cache,856
 - adding resource 0x556d18d33910
TI:08:38:13	TH:0x556d18caba40	FI:gpm-idle.c	FN:gpm_idle_evaluate,186
 - session_idle=0, idle_inhibited=0, suspend_inhibited=0, x_idle=0
TI:08:38:13	TH:0x556d18caba40	FI:gpm-idle.c	FN:gpm_idle_evaluate,191
 - X not idle
TI:08:38:13	TH:0x556d18caba40	FI:gpm-idle.c	FN:gpm_idle_set_timeout_dim,299
 - Current idle time=327ms, timeout was 10s, becomes 10s after adjustment
TI:08:38:13	TH:0x556d18caba40	FI:gpm-idle.c	FN:gpm_idle_set_timeout_dim,302
 - Setting dim idle timeout: 10s
TI:08:38:13	TH:0x556d18caba40	FI:gpm-dpms.c	FN:gpm_dpms_clear_timeouts,265
 - set timeouts to zero
TI:08:38:13	TH:0x556d18caba40	FI:gpm-backlight.c	FN:gpm_backlight_brightness_evaluate_and_set,302
 - 1. main brightness 0,100000
TI:08:38:13	TH:0x556d18caba40	FI:gpm-backlight.c	FN:gpm_backlight_brightness_evaluate_and_set,311
 - Setting initial brightness level
TI:08:38:13	TH:0x556d18caba40	FI:gpm-backlight.c	FN:gpm_backlight_brightness_evaluate_and_set,324
 - 2. battery scale 0,500000, brightness 0,050000
TI:08:38:13	TH:0x556d18caba40	FI:gpm-backlight.c	FN:gpm_backlight_brightness_evaluate_and_set,343
 - 3. idle scale 1,000000, brightness 0,050000
TI:08:38:13	TH:0x556d18caba40	FI:gpm-brightness.c	FN:gpm_brightness_foreach_screen,534
 - using resource 0x556d18d33910
TI:08:38:13	TH:0x556d18caba40	FI:gpm-brightness.c	FN:gpm_brightness_foreach_resource,492
 - resource 1 of 6
TI:08:38:13	TH:0x556d18caba40	FI:gpm-brightness.c	FN:gpm_brightness_output_get_percentage,334
 - hard value=43, min=0, max=852
TI:08:38:13	TH:0x556d18caba40	FI:gpm-brightness.c	FN:gpm_brightness_output_get_percentage,336
 - percentage 5
TI:08:38:13	TH:0x556d18caba40	FI:gpm-brightness.c	FN:gpm_brightness_foreach_resource,492
 - resource 2 of 6
TI:08:38:13	TH:0x556d18caba40	FI:gpm-brightness.c	FN:gpm_brightness_foreach_resource,492
 - resource 3 of 6
TI:08:38:13	TH:0x556d18caba40	FI:gpm-brightness.c	FN:gpm_brightness_foreach_resource,492
 - resource 4 of 6
TI:08:38:13	TH:0x556d18caba40	FI:gpm-brightness.c	FN:gpm_brightness_foreach_resource,492
 - resource 5 of 6
TI:08:38:13	TH:0x556d18caba40	FI:gpm-brightness.c	FN:gpm_brightness_foreach_resource,492
 - resource 6 of 6
TI:08:38:13	TH:0x556d18caba40	FI:gpm-backlight.c	FN:gpm_backlight_brightness_evaluate_and_set,351
 - values are the same, no action
TI:08:38:13	TH:0x556d18caba40	FI:gpm-idle.c	FN:gpm_idle_set_timeout_dim,299
 - Current idle time=333ms, timeout was 10s, becomes 10s after adjustment
TI:08:38:13	TH:0x556d18caba40	FI:gpm-idle.c	FN:gpm_idle_set_timeout_dim,302
 - Setting dim idle timeout: 10s
TI:08:38:13	TH:0x556d18caba40	FI:gpm-idle.c	FN:gpm_idle_set_check_cpu,121
 - Setting the CPU load check to 0
TI:08:38:13	TH:0x556d18caba40	FI:gpm-manager.c	FN:gpm_manager_init,1904
 - creating new control instance
TI:08:38:13	TH:0x556d18caba40	FI:gpm-manager.c	FN:gpm_manager_init,1909
 - creating new tray icon
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_init,1223
 - Using per-time notification policy
TI:08:38:13	TH:0x556d18caba40	FI:gpm-idle.c	FN:gpm_idle_set_timeout_blank,323
 - Setting blank idle timeout: 600s
TI:08:38:13	TH:0x556d18caba40	FI:gpm-idle.c	FN:gpm_idle_evaluate,186
 - session_idle=0, idle_inhibited=0, suspend_inhibited=0, x_idle=0
TI:08:38:13	TH:0x556d18caba40	FI:gpm-idle.c	FN:gpm_idle_evaluate,191
 - X not idle
TI:08:38:13	TH:0x556d18caba40	FI:gpm-idle.c	FN:gpm_idle_set_timeout_sleep,340
 - Setting sleep idle timeout: 0s
TI:08:38:13	TH:0x556d18caba40	FI:gpm-idle.c	FN:gpm_idle_evaluate,186
 - session_idle=0, idle_inhibited=0, suspend_inhibited=0, x_idle=0
TI:08:38:13	TH:0x556d18caba40	FI:gpm-idle.c	FN:gpm_idle_evaluate,191
 - X not idle
TI:08:38:13	TH:0x556d18caba40	FI:gpm-screensaver.c	FN:gpm_screensaver_add_throttle,131
 - adding throttle reason: 'Alimentazione dalla batteria': id 885183259
TI:08:38:13	TH:0x556d18caba40	FI:gpm-phone.c	FN:gpm_phone_coldplug,74
 - not connected
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_get_icon,446
 - Using fallback
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_recalculate_state_icon,478
 - ** EMIT: icon-changed: gpm-ac-adapter
TI:08:38:13	TH:0x556d18caba40	FI:gpm-tray-icon.c	FN:gpm_tray_icon_set_icon,125
 - Setting icon to gpm-ac-adapter
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_get_summary,296
 - tooltip: 
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_recalculate_state_summary,510
 - ** EMIT: summary-changed(1): 
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_device_add,815
 - adding /org/freedesktop/UPower/devices/line_power_AC with state unknown
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_get_icon,446
 - Using fallback
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_recalculate_state_icon,493
 - no change
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_get_summary,296
 - tooltip: 
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_recalculate_state_summary,522
 - no change
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_device_add,815
 - adding /org/freedesktop/UPower/devices/battery_BAT0 with state fully-charged
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_device_add,819
 - updating because we added a device
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_update_composite_device,658
 - composite:
  power supply:         no
  updated:              gio 01 gen 1970 01:00:00 CET (1534833493 seconds ago)
  has history:          no
  has statistics:       no
  unknown
    warning-level:       unknown
    icon-name:          '(null)'

TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_get_icon,446
 - Using fallback
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_recalculate_state_icon,493
 - no change
TI:08:38:13	TH:0x556d18caba40	FI:gpm-upower.c	FN:gpm_upower_get_device_icon,169
 - nothing matched, falling back to default icon
TI:08:38:13	TH:0x556d18caba40	FI:gpm-upower.c	FN:gpm_upower_get_device_icon,173
 - got filename: dialog-warning
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_recalculate_state_icon,488
 - ** EMIT: icon-changed: dialog-warning
TI:08:38:13	TH:0x556d18caba40	FI:gpm-tray-icon.c	FN:gpm_tray_icon_set_icon,125
 - Setting icon to dialog-warning
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_get_summary,296
 - tooltip: Batteria del portatile, carica completata
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_recalculate_state_summary,518
 - ** EMIT: summary-changed(2): Batteria del portatile, carica completata
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_device_add,815
 - adding /org/freedesktop/UPower/devices/battery_BAT1 with state discharging
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_device_add,819
 - updating because we added a device
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_update_composite_device,658
 - composite:
  power supply:         no
  updated:              gio 01 gen 1970 01:00:00 CET (1534833493 seconds ago)
  has history:          no
  has statistics:       no
  unknown
    warning-level:       unknown
    icon-name:          '(null)'

TI:08:38:13	TH:0x556d18caba40	FI:gpm-upower.c	FN:gpm_upower_get_device_icon,169
 - nothing matched, falling back to default icon
TI:08:38:13	TH:0x556d18caba40	FI:gpm-upower.c	FN:gpm_upower_get_device_icon,173
 - got filename: dialog-warning
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_recalculate_state_icon,493
 - no change
TI:08:38:13	TH:0x556d18caba40	FI:gpm-upower.c	FN:gpm_upower_get_device_icon,169
 - nothing matched, falling back to default icon
TI:08:38:13	TH:0x556d18caba40	FI:gpm-upower.c	FN:gpm_upower_get_device_icon,173
 - got filename: dialog-warning
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_recalculate_state_icon,493
 - no change
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_get_summary,296
 - tooltip: Batteria del portatile, carica completata
Batteria del portatile, 2 ore e 35 minuti rimanenti (87,0%)
TI:08:38:13	TH:0x556d18caba40	FI:gpm-engine.c	FN:gpm_engine_recalculate_state_summary,518
 - ** EMIT: summary-changed(2): Batteria del portatile, carica completata
Batteria del portatile, 2 ore e 35 minuti rimanenti (87,0%)

This is the output of mate-power-manager when I try to set suspend on lid close:

TI:08:34:53	TH:0x55ad011e3840	FI:gpm-backlight.c	FN:gpm_settings_key_changed_cb,405
 - unknown key button-lid-ac
TI:08:34:53	TH:0x55ad011e3840	FI:gpm-backlight.c	FN:gpm_settings_key_changed_cb,405
 - unknown key button-lid-battery
TI:08:34:53	TH:0x55ad011e3840	FI:gpm-backlight.c	FN:gpm_settings_key_changed_cb,405
 - unknown key action-critical-battery
TI:08:34:53	TH:0x55ad011e3840	FI:gpm-backlight.c	FN:gpm_settings_key_changed_cb,405
 - unknown key button-power
TI:08:34:53	TH:0x55ad011e3840	FI:gpm-backlight.c	FN:gpm_settings_key_changed_cb,405
 - unknown key button-suspend

I've noticed that neither the configured behavior on critical battery is respected. Also mate-power-statistics crashes if I click on the processor tab this error is related to Dbus and UPower but I can't provide other information as mate-power-statistics started to crash on startup.

Last edited by VoidPointer (2018-08-21 07:01:10)

Offline

#7 2018-08-21 14:45:59

ivanovnegro
Member
Registered: 2018-05-15
Posts: 57  

Re: mate-power-manager on ascii

sgage wrote:

I am also running MATE 1.20 from backports, and the mate-power-manager is working fine.

What are your settings exactly if I may ask? What happens with lid on close?
Otherwise it works and I won't switch back to xfce4-power-manager.

Offline

#8 2018-08-21 15:47:17

sgage
Member
Registered: 2016-12-01
Posts: 339  

Re: mate-power-manager on ascii

ivanovnegro wrote:
sgage wrote:

I am also running MATE 1.20 from backports, and the mate-power-manager is working fine.

What are your settings exactly if I may ask? What happens with lid on close?
Otherwise it works and I won't switch back to xfce4-power-manager.

No 'lid on close' - my computer is a desktop, not a laptop :-/   So I have to action for 'when lid is closed'.

Offline

#9 2018-08-21 16:26:23

VoidPointer
Member
Registered: 2018-08-20
Posts: 4  

Re: mate-power-manager on ascii

ivanovnegro wrote:

What are your settings exactly if I may ask? What happens with lid on close?
Otherwise it works and I won't switch back to xfce4-power-manager.

My settings are:
On lid close -> Suspend
When remaining battery reach critical level -> Hibernate

Actual behavior:
On lid close -> nothing
When remaining battery reach critical level -> nothing

So it's not working, I've tried xfce4-power-manager and it works fine except there is no icon in the tray. I'll probably try lxqt-powermanagement. Maybe I should report the bug in the BTS and provide testing to Devuan devs.

EDIT walk around for suspend on lid close:

  1. Install acpid

    apt-get install acpid
  2. Edit /etc/acpi/events/lid_close with your favorite text editor and enter the following lines:

    event=button/lid LID close
    action=/usr/sbin/pm-suspend
  3. Restart acpid:

    service acpid restart
  4. BONUS the screen on resume, edit /etc/acpi/events/lid_open and add:

    event=button/lid LID open
    action=/path/to/script/to/lock/screen

There is an applet installed with Mate that shows remaining battery percentage I'm using it instead of the mate-power-manager tray icon. The only thing left to get everything working is hibernate on low battery.

EDIT 2 Forget about the applet, it doesn't survive the reboot sad

Last edited by VoidPointer (2018-08-21 17:59:54)

Offline

#10 2018-08-22 15:40:02

ivanovnegro
Member
Registered: 2018-05-15
Posts: 57  

Re: mate-power-manager on ascii

sgage wrote:

No 'lid on close' - my computer is a desktop, not a laptop :-/   So I have to action for 'when lid is closed'.

Of course, sorry.

I mean everything else works except suspend on lid close and the battery icon like mentioned.

@Voidpointer: The script is a good idea.

VoidPointer wrote:

EDIT 2 Forget about the applet, it doesn't survive the reboot sad

Same here. But it worked before on Mate version 1.18. I used it successfully in conjunction with xfce4-power-manager.

Offline

Board footer