What does the lid have to do with it?

Due to overwhelming demand, we have created a forum just dedicated to Toughbook users who use Linux!
Message
Author
User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

Re: What does the lid have to do with it?

#21 Post by kode-niner »

mklym wrote:
I ran the code and this is what I got:

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.
The screen was meant to go black then back on. Each command was meant as a test to try individually to see if it somehow affects gpsd. The second command didn't work because your system lacks a /sys/power/state file and is using an alternate method for suspending.

It's all moot since Jeff seems to have figured out a workaround.
Daily drives a CF-31

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: What does the lid have to do with it?

#22 Post by SHEEPMAN! »

There's still something wrong with the kernel or?????????????????????

Is there a way to roll the Intel Video back just for my own edification and amusement.

This close the lid magic has been going on for quite a while...I remember people talking about putting units on stand-by and coming back to a working GPS.

This seems to work with most of the flickering screen distros....I'll confirm it if I don't forget.

Thanks for the help mklym and kode.

J'd from 74J-W7-SSD
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

Re: What does the lid have to do with it?

#23 Post by kode-niner »

Kali doesn't flicker on my CF-30. Maybe we should compare?
Daily drives a CF-31

User avatar
mklym
Posts: 907
Joined: Fri Feb 22, 2013 3:10 pm
Location: Edmonton, Alberta

Re: What does the lid have to do with it?

#24 Post by mklym »

kode-niner wrote:
mklym wrote:
I ran the code and this is what I got:

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.
The screen was meant to go black then back on. Each command was meant as a test to try individually to see if it somehow affects gpsd. The second command didn't work because your system lacks a /sys/power/state file and is using an alternate method for suspending.

It's all moot since Jeff seems to have figured out a workaround.
Silly me! Here I thought you wanted feedback. My mistake. :)
Merry Christmas Nick.
CF-29LTQ,CF-31SBM,CF-52youngGUN,

Life's Journey is not to arrive safely at the grave in a well preserved body, but rather to skid in sideways totally worn-out shouting 'Woo Hoo! What a ride!

Motorsports - the only real sport. If it doesn't have a motor, it is just a game.

There is always something waiting at the end of the road, if you are not willing to see what it is, you probably shouldn't be out there in the first place.

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

Re: What does the lid have to do with it?

#25 Post by kode-niner »

mklym wrote:
Silly me! Here I thought you wanted feedback. My mistake. :)
Merry Christmas Nick.
Haha, I work better in the dark. :D Seriously, though, I appreciate your feedback. Since I am not running an OS with GPS problems at the moment, I can only lob in a few suggestions for things to try.

Cheers and merry Christmas! :cheers:
Daily drives a CF-31

fleecy sheep
Posts: 8
Joined: Fri Jun 14, 2013 3:10 pm

Re: What does the lid have to do with it?

#26 Post by fleecy sheep »

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

Code: Select all

ps -ef|grep -i gps
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

Code: Select all

/etc/init.d/gpsd restart
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 :)

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: What does the lid have to do with it?

#27 Post by SHEEPMAN! »

Welcome to the soiree. Did my new avatar attract you? :)
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: What does the lid have to do with it?

#28 Post by SHEEPMAN! »

fleecy sheep,

We have two things weirdly affected by lid closure. One is the flickering screen syndrome where the OS does not use the laptop screen numbers for LVDS1 1024x768....cured by shutting the lid, changing to any other numbers like 800x600 and return and a couple other things.
This can be avoided by setting bios to internal monitor only.

Then by accident we found that xgps was cured by shutting the lid (stand-by). Most of the contributors to this thread have been talking about this for quite a while. Figuring out if they are related makes my head hurt.

Me: Mint 16 works fine. Mint 17 and 17.1 have issues. Common denominator (this is me) xorg video driver 15.0. Again because it makes my head hurt I am blaming this.

Summation I hope: I like 17 and 17.1 for Mark 1 and 3 CF-30. (Mark 2 doesn't flicker) Crutches or special settings in bios are repellent to me. Why? I want to tell new users that the OS works. My special group is interested in keeping "old" Toughbooks alive with new operating systems, so any new user can use them and love 'em like we do. Also repellent to me is to throw a $5200 machine in the dump. (Check pricing on CF-28's when they were new)

Slightly off topic with the 28 but we have a division of TDR working on mini-Linux. That is any Linux boot disk that is non-PAE and that will fit on a CD-Rom.

Anyhoo...appreciate the information half of which I need to go back and study. And again welcome. Don't be a stranger.

Jeff....TDR-HQ...
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

User avatar
mklym
Posts: 907
Joined: Fri Feb 22, 2013 3:10 pm
Location: Edmonton, Alberta

Re: What does the lid have to do with it?

#29 Post by mklym »

Sadlmkr wrote:Welcome to the soiree. Did my new avatar attract you? :)
:rofl: Nice! Thanks! :D
CF-29LTQ,CF-31SBM,CF-52youngGUN,

Life's Journey is not to arrive safely at the grave in a well preserved body, but rather to skid in sideways totally worn-out shouting 'Woo Hoo! What a ride!

Motorsports - the only real sport. If it doesn't have a motor, it is just a game.

There is always something waiting at the end of the road, if you are not willing to see what it is, you probably shouldn't be out there in the first place.

UNCNDL1
Posts: 509
Joined: Wed Nov 16, 2011 8:01 pm
Location: New England

Re: What does the lid have to do with it?

#30 Post by UNCNDL1 »

Jeff, for operating systems that will fit on a CD, check this link:
http://www.livecdlist.com/?order=field_minsize&sort=asc
I'm currently running WattOS (microwatt) R8 found here: http://www.planetwatt.com/pages/downloads
on the M-34, CF-28, and CF-18. One quirky thing is that after updating the system from the menu, if you want to add anything in Synaptic Package Manager, you need to go into Terminal and change permission-
gksu-properties
This link explains what I am trying to say:
http://planetwatt.com/newforum/index.ph ... sg18#msg18
CF-53 MX-Linux 21 Wildflower
CF-30 MK2 SSD MX-21 Betsy, MK2 Navigatrix, Fundraiser for TbT
CF-52 GUN SSD MX-19
(NICE) Thanks Sadlmkr
CF-M34 MicroWattR8 Thanks Sadlmkr
CF-M33 MicroWattR8 Thanks Springfield

Post Reply

Return to “The LINUX forum!!!”