restarting gdm on an embedded system
Hello,
I built an embedded system and am running ubuntu 9.04 on it. The system does not have a keyboard mouse or anything attached to it, but a small touch sensitive display.
X-windows (the touch screen driver) sometimes freezes and I need to restart X-windows.
The embedded system has a front panel with some buttons and I want to be able to restart X-windows using a key combination. The key panel is read/controlled with a daemon.
What I want is to restart X with a key combination, but how do I make the call? Something like:
system("service gdm restart > /dev/null"); doesn't seem to work. (probably because there's no shell?)
any ideas?
thanks,
Ron