TFT touchscreen under X

Forum regarding Linux Software and Home Automation Domotica.

TFT touchscreen under X

Postby Jfn » Wed Apr 02, 2008 5:45 pm

I intend to operate anything that is domotica related through a web-based setup. This means a TFT-touchscreen will be mounted to the wall, showing a web-browser 24x7, with large buttons. Kind of like how the Philips Pronto remote-control works.

As my domotica-server is running Linux (Intel GLY2 1GB mem) I was thinking of hooking-up the TFT screen to the domotica PC. But to run a browser like Firefox or Opera I need X-windows (Which at the moment is not installed).

Whenever I start the domotica PC (does not happen often though), it should boot immediately to a browser and open a certain website. It should not ask me for any username or password.

The question is, is this possible? And if so, how much CPU / memory does it consume? The domotica PC is running lots of other stuff and I do not want X to interfere with normal operations.

Is the GLY2 fast enough to run X at a reasonable speed?

The alternative is a new (Linux/Windows) based-PC just to operate the TFT, but looking at energy-consumption I would prefer to operate it from the GLY2 as that system is always running and does consume very little energy (about 30W or less).



Als het niet gerepareerd kan worden dan is het niet kapot!
Jfn
Member
Member
 
Posts: 332
Joined: February 2008
Location: Netherlands

TFT touchscreen under X

Postby Snelvuur » Wed Apr 02, 2008 7:13 pm

it is possible to let it boot xwindows and then start up a browser. but i think there are also other tools out there that can run firefox without the need for xwindows. Since this problem has haunted more then 1 person. If you cant find anything, let me know and i wil se what i can find too.

// Erik (binkey.nl)
User avatar
Snelvuur
Forum Moderator
Forum Moderator
 
Posts: 3155
Joined: April 2007
Location: Netherlands

TFT touchscreen under X

Postby Niknik » Tue Apr 08, 2008 9:35 am

That sounds interesting Erik, care to give some more details about how we would do that?
(I tried googling for it, but couldn't find anything about "Firefox without X server" - and I'm not a linux expert :)
Niknik
Member
Member
 
Posts: 255
Joined: April 2006
Location: Portugal

TFT touchscreen under X

Postby Snelvuur » Tue Apr 08, 2008 10:37 am

You can use minimal installation:

http://users.pandora.be/mydotcom/howto/ ... s/xwin.htm

see http://www.semicomplete.com/blog/geeker ... refox.html for an example on how to control firefox via the commandline when its started. Then you can let it redirect to your homeautomation page straight away.


// Erik (binkey.nl)
User avatar
Snelvuur
Forum Moderator
Forum Moderator
 
Posts: 3155
Joined: April 2007
Location: Netherlands

TFT touchscreen under X

Postby Niknik » Tue Apr 08, 2008 10:52 am

Thanks Erik - extremely helpful links.
Niknik
Member
Member
 
Posts: 255
Joined: April 2006
Location: Portugal

TFT touchscreen under X

Postby Jfn » Tue Apr 08, 2008 12:13 pm

I found something that seems to works. I still need X, but not a window manager.

The following seems to work (In VMware):
Code: Select all
#!/bin/bash
#
export DISPLAY=1.2.3.4:0
nohup X 1>/dev/null 2>/dev/null &
nohup /usr/bin/iceweasel 1>/dev/null 2>/dev/null &
Very basic, but during system start up it boots up a browser (iceweasel in this case). By using certain style-sheet commands in the webpage that opens by default, it should be possible to let the browser open full-screen (F11) and remove the side-scrollbar when it is not needed.

I never really done something with X (I am a commandline user), so I am glad that the setup above is working.



Als het niet gerepareerd kan worden dan is het niet kapot!
Jfn
Member
Member
 
Posts: 332
Joined: February 2008
Location: Netherlands

TFT touchscreen under X

Postby Snelvuur » Tue Apr 08, 2008 12:21 pm

same here though, command line user.. if i want a gui i'll use windows..

// Erik (binkey.nl)
User avatar
Snelvuur
Forum Moderator
Forum Moderator
 
Posts: 3155
Joined: April 2007
Location: Netherlands


Return to Linux Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron