Active Topics

 


Reply
Thread Tools
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#11
Originally Posted by fpp View Post
This is what the 'platform' module gives you, among other things. Part of the returned values is 'Nokia-N900-42-11', which is pretty precise IMHO...
That's the hostname. I changed this on the device I have, so it's also not that reliable (uname -a gives "Linux poodonkis 2.6.28-omap1 #1 PREEMPT Thu Dec 17 09:40:52 EET 2009 armv7l unknown" here).
 

The Following 3 Users Say Thank You to thp For This Useful Post:
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#12
Another data point that might be a bit more reliable: The "Hardware" field in /proc/cpuinfo:

Code:
Processor	: ARMv7 Processor rev 3 (v7l)
BogoMIPS	: 249.96
Features	: swp half thumb fastmult vfp edsp neon vfpv3 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x1
CPU part	: 0xc08
CPU revision	: 3

Hardware	: Nokia RX-51 board
Revision	: 2101
Serial		: 0000000000000000
 
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#13
This doesn't work on scratchbox, though, which is Maemo, too.
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#14
Originally Posted by pycage View Post
This doesn't work on scratchbox, though, which is Maemo, too.
You'll be happy to know that the Nokia method for checking if one of their programs is running in Scratchbox is to check for the existence of the /scratchbox directory.
 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post:
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#15
Originally Posted by qwerty12 View Post
You'll be happy to know that the Nokia method for checking if one of their programs is running in Scratchbox is to check for the existence of the /scratchbox directory.
Huh? /scratchbox exists on my Linux box, too, because I have scratchbox installed on it. Having /scratchbox doesn't mean that you're running in scratchbox, actually.
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#16
Originally Posted by pycage View Post
Huh? /scratchbox exists on my Linux box, too, because I have scratchbox installed on it. Having /scratchbox doesn't mean that you're running in scratchbox, actually.
No point debating it with me (I did say "Nokia method") . If I'm not mistaken, this can be evidenced in some of Diablo's osso-af-init and init.d scripts.
Infact, someone accidently broke the Diablo browser on the N8x0 by having their package create a /scratchbox directory. Upon the next reboot, browserd thought it was running in Scratchbox.

Last edited by qwerty12; 2010-02-05 at 14:20.
 
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#17
Check if X's resolution is 800x480?
 
zwer's Avatar
Posts: 455 | Thanked: 782 times | Joined on Nov 2009 @ Netherlands
#18
Do a screengrab on X and then analyze it to definitely conclude if it's running on a Maemo device?
__________________
Man will never be free until the last king is strangled with the entrails of the last priest.
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:28.