View Single Post
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#15
Why would you want to restart xorg?

I think the -r flag tells dsme to reboot the device if this process dies/is killed. I.e. if Xorg goes down holy sh1t, catastrophe! Reboot now!

Possibly by changing the dsmetool flag for xorg startup you could change the way it reacts to Xorg dieing. For example if you copy how BME is launched (just restarts BME if it is killed/dies, reboots after 5 shots) you may get your desired effect.

The watchdog is a timer that runs out, a hardware countdown. If some piece of software does not set a bit every 30s (I think) then the hardware assumes everything has gone tits up and resets the hardware (reboot).

So the problem is not the watchdog killing the phone, it is dsme killing the phone when it sees a critical process dieing. You just have to change how dsme starts xorg.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following 2 Users Say Thank You to vi_ For This Useful Post: