You are not logged in.
Does not work in a terminal:
13 Apr 16 @ 11:12:36 ~ $ bl-exit /home/sector11/.themes/S11-NS-brushed/gtk-2.0/panel.rc:32: Unable to locate image file in pixmap_path: "shadows/window-bg.png"
Looks like a theme error -- will it work if you set the theme to Raleigh?
Offline
@s11,
When you run my version of the bl-exit script, you get that error message - probably produced because your theme has some missing file - and then... nothing?
You need to break (Ctrl +C) to get your prompt back. Is that correct?
Could you try starting my script under the python debugger, like this:
pdb <your path to my version of the script>
> /usr/bin/bl-exit(4)<module>()
-> import gtk
(Pdb) c
.
.
.
(Pdb) bt
I have put the answers you should provide after the (Pdb) prompt in bold.
I am interested in what the debugger returns after you entered the 'bt' command.
To exit from the debugger, type 'exit' at the prompt. (without the surrounding quotes)
Explanation:
1. The first 'c' you enter is short for 'continue'
2. The 'bt' is short for 'backtrace'
It is possible that you don't get the second (Pdb) prompt because the program hangs.
In that case 'break' it with Ctrl+c and let me know.
Thanks for your cooperation.
Offline
I would appreciate it enormously if someone else could test the new version of the bl-exit script.
You can find an explanation on how to configure it here
It works for Hoas, but does not work for Sector11.
So its a tie at the moment and it is not possible to say if the new script is the culprit or the peculiar setup of Sector11.
Thanks
Offline
@s11,
When you run my version of the bl-exit script, you get that error message - probably produced because your theme has some missing file - and then... nothing?
You need to break (Ctrl +C) to get your prompt back. Is that correct?
First I changed themes to: Bunsen - to eliminate my theme being the culprit.
This is after [Ctrl]+c - didn't do that before.
14 Apr 16 @ 06:44:38 ~
$ bl-exit
^CTraceback (most recent call last):
File "/home/sector11/bin/bl-exit", line 362, in <module>
main(sys.argv[1:])
File "/home/sector11/bin/bl-exit", line 356, in main
graphical_processing()
File "/home/sector11/bin/bl-exit", line 345, in graphical_processing
Blexit().main()
File "/home/sector11/bin/bl-exit", line 160, in main
gtk.main()
KeyboardInterrupt
14 Apr 16 @ 06:44:59 ~
$
Could you try starting my script under the python debugger, like this:
pdb <your path to my version of the script>
> /usr/bin/bl-exit(4)<module>()
-> import gtk
(Pdb) c
.
.
.
(Pdb) btI have put the answers you should provide after the (Pdb) prompt in bold.
I am interested in what the debugger returns after you entered the 'bt' command.To exit from the debugger, type 'exit' at the prompt. (without the surrounding quotes)
Explanation:
1. The first 'c' you enter is short for 'continue'
2. The 'bt' is short for 'backtrace'
It is possible that you don't get the second (Pdb) prompt because the program hangs.
In that case 'break' it with Ctrl+c and let me know.Thanks for your cooperation.
Cooperation isn't a problem - glad to ßeta test.
"c" needed [Ctrl]+c to continue to the next (Pdb) and a final [Ctrl]+c to exit to the prompt.
14 Apr 16 @ 06:56:30 ~
$ pdb /home/sector11/bin/bl-exit
> /home/sector11/bin/bl-exit(3)<module>()
-> from __future__ import print_function
(Pdb) c
^CTraceback (most recent call last):
File "/usr/lib/python2.7/pdb.py", line 1314, in main
pdb._runscript(mainpyfile)
File "/usr/lib/python2.7/pdb.py", line 1233, in _runscript
self.run(statement)
File "/usr/lib/python2.7/bdb.py", line 400, in run
exec cmd in globals, locals
File "<string>", line 1, in <module>
File "/home/sector11/bin/bl-exit", line 3, in <module>
from __future__ import print_function
File "/home/sector11/bin/bl-exit", line 356, in main
graphical_processing()
File "/home/sector11/bin/bl-exit", line 345, in graphical_processing
Blexit().main()
File "/home/sector11/bin/bl-exit", line 160, in main
gtk.main()
KeyboardInterrupt
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> /home/sector11/bin/bl-exit(160)main()
-> gtk.main()
(Pdb) bt
/usr/lib/python2.7/pdb.py(1314)main()
-> pdb._runscript(mainpyfile)
/usr/lib/python2.7/pdb.py(1233)_runscript()
-> self.run(statement)
/usr/lib/python2.7/bdb.py(400)run()
-> exec cmd in globals, locals
<string>(1)<module>()
/home/sector11/bin/bl-exit(3)<module>()
-> from __future__ import print_function
/home/sector11/bin/bl-exit(356)main()
-> graphical_processing()
/home/sector11/bin/bl-exit(345)graphical_processing()
-> Blexit().main()
> /home/sector11/bin/bl-exit(160)main()
-> gtk.main()
(Pdb)
Traceback (most recent call last):
File "/usr/bin/pdb", line 1338, in <module>
pdb.main()
File "/usr/lib/python2.7/pdb.py", line 1330, in main
pdb.interaction(None, t)
File "/usr/lib/python2.7/pdb.py", line 210, in interaction
self.cmdloop()
File "/usr/lib/python2.7/cmd.py", line 130, in cmdloop
line = raw_input(self.prompt)
KeyboardInterrupt
14 Apr 16 @ 06:58:01 ~
$
... a final [Ctrl]+c brought me back out to the prompt.
NOTE: exit didn't exit:
(Pdb) exit
Post mortem debugger finished. The /home/sector11/bin/bl-exit will be restarted
> /home/sector11/bin/bl-exit(3)<module>()
-> from __future__ import print_function
(Pdb)
Another note because of this:
You can find an explanation on how to configure it here
I did nothing to configure it. Using the script as it came.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
I did nothing to configure it. Using the script as it came.
That is OK.
The script should work exactly like the 'official bl-exit' without configuration file.
You only need the configuration file if you want more or less buttons than the 'official' version shows.
While I am examining the results you reported, can you run strace for me on the new script:
1. install package 'strace' if you don(t have it installed already
2. from a terminal window, run
strace -o strace -f -tT <path-to-my-bl-exit-script>
this will create a rather large file strace in your current directory.
You will have to "break" it after say 30 seconds.
Post the content of the strace file via a pastebin of your choice and give me a link to it.
Thanks
Offline
WOW I'll say big - 8632 lines in ±30seconds.
Good for a week: https://dpaste.de/sWB2/raw
Hope it helps.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Don't bother with strace any more.
I think I found the problem.
There is a new version of the script available on github.
Can you try that one.
Thanks
Offline
Testing latest version in VBox - all seems to be working there OK
Playing with various ini entries has worked so far, even "hibernate" (NB the path in this post should be $HOME/.config/bl-exit/bl-exitrc)
I will try it on the main system after I have finished a long-running render
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Thanks for testing this, damo.
I have corrected path to config file in my post #38.
Offline
Tested with all default BL gtk themes - OK;
Tested with random and gibberish entries in the ini file - OK.
Nice work
EDIT: tested on main box, and "Hibernate" is greyed-out as expected.
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Thanks, damo.
I will mark this version 2.0.0
Offline
@Sector11,
I am pretty sure this version will work for you too.
Sorry for 'blaming' your setup. It was a script error.
But I will keep calling your setup 'peculiar'
Offline
Offline
OK.
Suggestions and error reports still welcome.
Offline
I would appreciate it enormously if someone else could test the new version of the bl-exit script.
You can find an explanation on how to configure it hereThanks
Sorry I missed this, Doc. I'll give it a go ASAP.
ASAP=after speedy ale purchase
No, he can't sleep on the floor. What do you think I'm yelling for?!!!
Offline
@Rock Me Dr. Xaos, I put /bin/bl-exit in /usr/local/bin. No config, no change. Create ~/.config/bl-exit/bl-exitrc with your hibernate content, the button appears and my laptop hibernates (very glitchy and ugly on my 9 y.o. ThinkPad, but it works. Spotify picked up where it left off, sweet.)
Very slick, great work, and bravo. Take a bow for a very elegant solution.
-edit- Not all that glitchy or ugly, really, on second sight. I'm using it, it's great.
No, he can't sleep on the floor. What do you think I'm yelling for?!!!
Offline
Quick test on a VM.
Default (no config) works fine.
Use $HOME/.config/bl-exit/bl-exitrc
[hibernate]
show = maybe
onerror = visual
to add "Hibernate", and the button appears. Click it and the VM closes down.
Restart the VM and I get a black screen. No key or mouse action will get out of it, except using VirtualBox's R-Ctrl + Q to shutdown the VM. After that it comes back up OK but the session has been lost.
I guess that is an issue with Hibernate on that VM, possibly with LightDM or LightLocker.
At least I can say that bl-exit did not raise an error message when "Hibernate" was clicked.
However, Hibernate is not the sort of thing I ever expect to work anyway. (especially on a VM)
---
Possible unrelated suggestion: have bl-exit check /etc/bl-exit/bl-exitrc for a system-wide config file if there's no user file. We could ship a config that just spells out the hardcoded default settings, but would be a template for users to copy into ~/.config/bl-exit
Last edited by johnraff (2016-04-17 06:36:16)
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Use $HOME/.config/bl-exit/bl-exitrc
[hibernate] show = maybe onerror = visual
to add "Hibernate", and the button appears. Click it and the VM closes down.
Restart the VM and I get a black screen. No key or mouse action will get out of it, except using VirtualBox's R-Ctrl + Q to shutdown the VM. After that it comes back up OK but the session has been lost.
I have not configured my machine to use hibernation and if I use the "Hibernate" button then my machine shuts down.
I think this is the expected behaviour but I use btrfs so I can't make a swap file to enable hibernation to check this
Offline
Late to the game but...
Q1. Would you use that functionalty?
Next laptop I'm buying will very very likely to be running BL. Yes, I definitely would use it.
Q2. For 'Hibernate' to work, you need to set up adequate swap space.
When the swap space is not sufficient to hibernate, choose one of the options below:
1. I don't want to see the hibernate button.
... BUT I'd appreciate a dialog during installation "your swap space isn't sufficient for Hibernate, so the option will not be available".
Offline