You are not logged in.

#61 2016-04-13 17:35:12

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,065
Website

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Sector11 wrote:

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

#62 2016-04-13 17:40:28

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Nope:
2016_04_13_14_38_44_Scrot11.jpg
sad


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#63 2016-04-14 09:10:53

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

@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

#64 2016-04-14 09:21:58

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

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

#65 2016-04-14 10:06:54

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

xaos52 wrote:

@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 ~
  $ 
xaos52 wrote:

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.

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

#66 2016-04-14 10:29:27

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

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

#67 2016-04-14 10:46:08

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

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

#68 2016-04-14 10:48:30

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

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

#69 2016-04-14 11:34:17

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Testing latest version in VBox - all seems to be working there OK smile

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 wink


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

#70 2016-04-14 11:59:06

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Thanks for testing this, damo.

I have corrected path  to config file in my post #38.

Offline

#71 2016-04-14 12:12:52

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Tested with all default BL gtk themes - OK;

Tested with random and gibberish entries in the ini file - OK.

Nice work smile

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

#72 2016-04-14 12:18:42

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Thanks, damo.

I will mark this version 2.0.0

Offline

#73 2016-04-14 12:21:30

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

@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' smile

Offline

#74 2016-04-14 12:42:39

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

lol  lol  lol You could get away with calling me 'peculiar', but the new script works just fine.
2016_04_14_09_32_46_Scrot11.jpg
Anyway, glad to have helped.

Now to check out the config file and I'll switch to this.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#75 2016-04-14 12:55:38

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

OK.
Suggestions and error reports still welcome. wink

Offline

#76 2016-04-15 02:36:19

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

xaos52 wrote:

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

#77 2016-04-15 03:49:27

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

@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

#78 2016-04-17 04:44:58

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,553
Website

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

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) roll

---

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 )

Introduction to the Bunsenlabs Boron Desktop

Offline

#79 2016-04-17 08:55:14

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,065
Website

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

johnraff wrote:

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 hmm

Offline

#80 2016-04-17 16:12:49

Peregrino69
Member
Registered: 2016-03-11
Posts: 99

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

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

Board footer

Powered by FluxBB