You are Here:
Linux Lite 4.6 Final has been released. See the Release Announcements section for more information.



unable to remove the suspend an hibernate buttons from user logout

Author (Read 1229 times)

0 Members and 1 Guest are viewing this topic.

unable to remove the suspend an hibernate buttons from user logout
« on: September 19, 2018, 01:20:01 PM »
 

trinidad

  • Moderator
  • Gold Level Poster
  • *****
  • 990
    Posts
  • Country: us
  • Reputation: 178
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
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


 
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 


Re: unable to remove the suspend an hibernate buttons from user logout
« Reply #1 on: September 19, 2018, 11:15:21 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7017
    Posts
  • Country: nz
  • Reputation: 651
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
You didn't mention what version of LT and LL.

Sent from my Mobile phone using Tapatalk

 

Re: unable to remove the suspend an hibernate buttons from user logout
« Reply #2 on: September 20, 2018, 09:09:53 AM »
 

trinidad

  • Moderator
  • Gold Level Poster
  • *****
  • 990
    Posts
  • Country: us
  • Reputation: 178
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
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
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: unable to remove the suspend an hibernate buttons from user logout
« Reply #3 on: September 20, 2018, 09:15:35 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7017
    Posts
  • Country: nz
  • Reputation: 651
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
Code: [Select]
apt policy lite-tweaks
 

Re: unable to remove the suspend an hibernate buttons from user logout
« Reply #4 on: September 20, 2018, 09:20:52 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7017
    Posts
  • Country: nz
  • Reputation: 651
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
Works fine here, all updated:

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



Take a look at the code if you like, try the commands via cli. Look for suspicious output.
 

Re: unable to remove the suspend an hibernate buttons from user logout
« Reply #5 on: September 20, 2018, 09:35:19 AM »
 

trinidad

  • Moderator
  • Gold Level Poster
  • *****
  • 990
    Posts
  • Country: us
  • Reputation: 178
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
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
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: unable to remove the suspend an hibernate buttons from user logout
« Reply #6 on: September 21, 2018, 01:52:09 PM »
 

Vera

  • PayPal Supporter
  • Forum Regular
  • *****
  • 140
    Posts
  • Country: 00
  • Reputation: 16
  • Enjoying Linux Lite.

  • Linux Lite: 3.4 64bit

  • CPU: Intel Quad Core 1.6GHz

  • MEMORY: 8Gb

  • VIDEO CARD: AMD Radeon
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.
Using Linux Lite for everything now. I put it on my desktop and my laptop. Woohoo!
 

Re: unable to remove the suspend an hibernate buttons from user logout
« Reply #7 on: September 22, 2018, 12:45:33 PM »
 

trinidad

  • Moderator
  • Gold Level Poster
  • *****
  • 990
    Posts
  • Country: us
  • Reputation: 178
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
@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
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: unable to remove the suspend an hibernate buttons from user logout
« Reply #8 on: September 23, 2018, 01:16:40 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7017
    Posts
  • Country: nz
  • Reputation: 651
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
Point 2 - gksu is being deprecated. We started replacing it with pkexec some time ago. https://itsfoss.com/gksu-replacement-ubuntu/
 


Tags:
 


Linux Lite 4.6 Final has been released. See the Release Announcements section for more information.