Code: Select all
morgan@CF-30MK3Mint17 ~ $ xset dpms force off; xset dpms force on
morgan@CF-30MK3Mint17 ~ $ sudo echo -n mem > /sys/power/state
bash: /sys/power/state: Permission denied
When I ran xset command, the screen went black and immediately came back on.
In order to avoid the "Permission denied" error, you either have to sudo into a root shell (i.e. sudo -s or other options with different implications; see "man sudo"), or use "tee" instead of ">" for the writing part, as the root priviledges for the "echo" command are no longer valid for the following ">" command and /sys/power/state only has write permissions set for root:
Code: Select all
echo -n mem | sudo tee /sys/power/state
I am not familiar with Mint, but since it's Ubuntu/Debian based, I might give some advice to encircle the problem.
Find out if your desktop environment settings do initiate some power savings procedure (suspend/hibernation) on closing the lid.
I suppose a suspend to RAM is kicked off. Then check for discrepancies between /var/log/syslog and /var/log/pm-* concerning gpsd. You may also look into /etc/init.d/gpsd (start script for boot up) and /etc/default/gpsd (default config file; this probably is where you have to change settings) and use
to look for differences in the deamon process options.
Or maybe gpsd gets started too soon in the boot process, so some dependencies are not met. In order to test this restart gpsd again at the end of the boot process by inserting
into "/etc/rc.local" or restart it manually.
Finally a general tip for comparing/editing differences betwenn files if you're not just using a shell: install "meld" if it's in the Mint Repositry (best diff program I could find).
Best wishes to everyone for the holiday season
![:) :)](./images/smilies/smile.gif)