You are not logged in.
Hi
There's a known bug with tint2/xfce-power-manager's battery monitor in which waking from suspend causes a large blank space to appear after the battery icon in the notification area of tint2.
I would just like to know if there is a means of calling a script upon resuming from suspend that would kill and restart tint2?
I found this which describes restarting the mouse from suspend, could I just edit this so it kills tint2 and then runs it again?
If so... which parts of that script do I need, or could it literally just contain the following?
#! /bin/sh
pkill tint2 && tint2
Many thanks for any help on this!
Visit my blog and my DeviatArt page
Offline
I'm not an expert in shell scripts but you could try it out and see if it works. Based on the link i would do it like this.
#!/bin/sh
#
case "$1" in
suspend)
killall tint2
;;
resume)
#killall tint2
tint2
;;
*) exit $NA
;;
esac
I hope that this works for you.
Offline
I'm not an expert in shell scripts but you could try it out and see if it works. Based on the link i would do it like this.
#!/bin/sh # case "$1" in suspend) killall tint2 ;; resume) #killall tint2 tint2 ;; *) exit $NA ;; esac
I hope that this works for you.
Thanks for the response prasinoulhs Unfortunately that didn't work, it managed to kill tint2 but not restart it
I've tried changing it about a bit so it commands to do nothing on suspend, but then killall tint2 && tint2 on resume, but that hasn't worked.
I also tried with a separate kill and start script, both appropriately so the start script would run last, but still no luck.
Anyone have any ideas?
Visit my blog and my DeviatArt page
Offline
Hmm I found this thread. The solution works, but now whenever I resume from suspend, wicd is unable to connect to my wireless. when bringing up the GUI and telling it to connect (which it should do automatically) it hangs on 'Disconnecting active connections' so I have to quit wicd-gtk, restart the wicd daemon then reload the gui
EDIT: Tried both the solutions mentioned in this thread also, however no such luck
Last edited by Starfall (2012-03-03 00:45:09)
Visit my blog and my DeviatArt page
Offline
Anybody have any ideas at all? It'd be greatly appreciated
Visit my blog and my DeviatArt page
Offline
I still haven't been able to figure this out. It's rather cumbersome having to manually kill and restart tint2 every time.
Does anyone with experience with this kinda thing have any idea at all? Any words are greatly appreciated!
Visit my blog and my DeviatArt page
Offline
I have a work around for the tint2/xfce-power-manager bug.
I run xfce-power-manager with the "never show icon" option. Instead of using the xfce-power-manager icon, I use 'Vattery' (available in the AUR) as the visible power monitor.
This allows me to use xfce-power-manager-settings to control power management on my netbook.
It's not elegant - but it works for me.
Offline
Hi Starfall,
I probably broken all kinds of rules doing this but I had the same problem and couldn't find anything so I put the following in /etc/acpi/handler.sh
button/lid)
case "$3" in
close)
su killall tint2
/usr/sbin/pm-suspend &
;;
open)
exec tint2 &
;;
And it seems to do the job.
Offline
I have a work around for the tint2/xfce-power-manager bug.
I run xfce-power-manager with the "never show icon" option. Instead of using the xfce-power-manager icon, I use 'Vattery' (available in the AUR) as the visible power monitor.
This allows me to use xfce-power-manager-settings to control power management on my netbook.It's not elegant - but it works for me.
vattery gives me following error.
Error opening directory '/proc/acpi/battery': No such file or directoryusing data type: None
Offline