Linux Lite Forums

Customization => Desktop Customization => Topic started by: trinidad on September 19, 2018, 01:20:01 PM

Title: unable to remove the suspend an hibernate buttons from user logout
Post by: trinidad on September 19, 2018, 01:20:01 PM
I have installed Linux Lite literally hundreds of times. I have yet to encounter an unsurmountable issue. Here I am suddenly puzzled. I simply cannot get the Lite Tweaks UI to remove the suspend & hibernate buttons from the logout screen. OS runs perfectly, machine is Intel Dell and not exotic. For some reason tweaks is not requiring authentication for this option, and it is a desktop not a laptop, so somewhere in those configurations is where the issue lies. It's not possible to reboot and install without authentication in Debian, yet Lite Tweaks is seeming to attempt this concerning hiding the buttons.

TC


 
Title: Re: unable to remove the suspend an hibernate buttons from user logout
Post by: Jerry on September 19, 2018, 11:15:21 PM
You didn't mention what version of LT and LL.

Sent from my Mobile phone using Tapatalk

Title: Re: unable to remove the suspend an hibernate buttons from user logout
Post by: trinidad on September 20, 2018, 09:09:53 AM
Sorry Jerry. LL 4.0 fully updated, so I guess newest version of LT. I like to remove those buttons when I know the user is not computer savvy to prevent accidental suspensions/hibernations and unneeded phone calls to the office, and in this particular case even a road trip. A lot of refurb computers I give away out of my shop go to financially and intellectually challenged users, often completely new to computing. I may not understand the UI myself in this case. It seems to background the process with a small active load window hidden beneath the choice window. It offers restart after selecting the change but requires no authentication to run, and the change does not take effect. Knowing the quality of Linux Lite I suspect the UI is just confusing me, and I am not using it correctly. Thanks for the reply.

TC
Title: Re: unable to remove the suspend an hibernate buttons from user logout
Post by: Jerry on September 20, 2018, 09:15:35 AM
Code: [Select]
apt policy lite-tweaks
Title: Re: unable to remove the suspend an hibernate buttons from user logout
Post by: Jerry on September 20, 2018, 09:20:52 AM
Works fine here, all updated:

Installed: 4.0-0010-linuxlite
  Candidate: 4.0-0010-linuxlite

(https://i.imgur.com/pLFOniQ.png)

Take a look at the code if you like, try the commands via cli. Look for suspicious output.
Title: Re: unable to remove the suspend an hibernate buttons from user logout
Post by: trinidad on September 20, 2018, 09:35:19 AM
Thanks again Jerry. Now that I know it works, I can assume that something went wrong with the way I used the UI, or there is an error in the code on my end somewhere. I'll go through it later today. It kinda threw me. I'm very spoiled with the quality of Linux Lite. It is the very first time I've ever encountered a problem. I'll report back, but I bet something got borked during install, though that never happens to me either. Once or twice in a couple hundred, and only  exotic AMD stuff. Thanks again for replying to something that is probably operator error on my end.

TC
Title: Re: unable to remove the suspend an hibernate buttons from user logout
Post by: Vera on September 21, 2018, 01:52:09 PM
I had no idea that removing these buttons was even possible so I was thrilled to hear that I can do this with Lite Tweaks! I tried it on my LL 4.0 laptop and it all went smoothly.

The only thing that tripped me up a little is that I then realized I need to do it for each user, not just the main user. I have 3 users on this laptop, and initially I didn't realize I'd need to log into all 3 accounts and use the Lite Tweaks on all 3. But after I did that, it worked perfectly! This is ideal because I don't want any of the users to accidentally put it into hibernate or suspend when they are trying to shut down or log out.
Title: Re: unable to remove the suspend an hibernate buttons from user logout
Post by: trinidad on September 22, 2018, 12:45:33 PM
@Jerry

1) Well I did go through the shell code and the dpkg logs and it all looked pretty nice to me, and running from the CLI did not error but stalled/hung, so finally last night I compared it to another running system and it matched perfectly. System log was next and that's where the errors showed up, several others in fact, including settings that were not passed on reboots. As I said the shell code seemed without error, so rather than immediately conclude the system was borked, I realized it could be the disk, and there it was, several bad sectors at the head of the disk, of course multiplying themselves with each change requiring a reboot to take effect. What was actually happening was when I ran lite-tweaks the changes were taking so long to initialize because of the bad sectors that they were not recorded in time for the reboot. Replaced the disk, installed again from the same USB, and all is well now.

2) I am curious if gksu is the best way to go here with the lite-tweaks code. I'm assuming that's because of the specific UI call.

3) Also it might make more sense to require sudo for h/s buttons option as the log-off screen window setting would then be the same on multi-user setups. That makes more sense because skilled users would know how to use the CLI anyway, and the options would then be hidden from dilettante users.

I enjoyed the journey anyway, and this was the last of any older Intel machines I have on hand until next month, so what's left around here is only Debian and AMD cpus. Feels a little empty, but kinda refreshing too.Thanks again for the reply.

TC
Title: Re: unable to remove the suspend an hibernate buttons from user logout
Post by: Jerry on September 23, 2018, 01:16:40 AM
Point 2 - gksu is being deprecated. We started replacing it with pkexec some time ago. https://itsfoss.com/gksu-replacement-ubuntu/