Re-starting/initializing XServer Without Loosing Session?
Hello All,
I'm trying to solve a little problem I'm having with my Laptop. Here's some general info: Code:
# uname -a And the problem I'm running into is that whenever I have to go to a meeting or anything like that where I may need to bring it with me I need to either restart to whole computer all together or take it out of the Docking Station and issue "CTR+ALT+Backspace". Or go into "nvidia-settings" and 'enable' my laptop screen then issue a restart of X. All of those options above are kind of a pain in the butt..!! And obviously when you do either of these things you will have to close everything out first and start over again after the reboot... Does anyone know if when for instance, if I put the laptop to "sleep" or "hibernate", would it "re-read" the xorg.conf file..? In other words does Xserver sort of "restart" when you come back after putting it to sleep/hibernate? Because I'm thinking about scripting this out, where I might possibly replace the config file before putting it to sleep, then upon awakening it would re-read the config file. I got this idea from this link here (http://www.geekwisdom.com/dyn/node/241), but it doesn't work for my laptop even though it is also a Dell Latitude Laptop. I believe that he used xrandr and a bash script to accomplish it. Must be have been done on an older version. Any suggestions would be great... Thanks in Advance, Matt |
Hi Matt,
ok, this is an old thread and I don't know if in the mean while you have came up with a solution, but I'll give it a try.. ;) Quote:
At the beginning, the script that you have linked in your post did not work for me as well. The problem was with a function supposed to check if the screen resolution adopted was actually supported by the monitor; after commenting that out, it worked! :D Here it is the modified version: Code:
#!/bin/bash Anyway, talking about automation at startup, I have realized that xrandx is a powerful tool for scripting, check this out: http://crunchbanglinux.org/forums/post/214037/#p214037. Good luck ;) |
Hey VDP76, thanks for your reply...
Na, I never found a solution to this problem. I kinda just gave up after a while, I felt like I was just going in circles with it and not getting much closer to the goal. Cool, I'll give your changes to the script a try and see how it goes. Also, I'll check out that link you posted for any other good info. Thanks again for your suggestions, I appreciate your help! Thanks Again, Matt |
All times are GMT -5. The time now is 10:31 AM. |