maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Disable Xorg loggin? (https://talk.maemo.org/showthread.php?t=39205)

DaSilva 2010-01-04 10:27

Disable Xorg loggin?
 
Is it possible to disable "/usr/bin/Xorg -logfile /tmp/Xorg.0.log -logverbose 1 -nolisten tcp -noreset -s 0" process or is this needed for some applications? It uses 5%-8% of the CPU most of the time and is not really necessary in my eyes.
If it is possible to disable it without a problem how can I prevent it to start after a reboot?
Thanks.

slender 2010-01-04 10:33

Re: Disable Xorg loggin?
 
Hmm. Iīm not completely sure, but if you like using your phone only from terminal then itīs probably useless to you =)

.edit
I think its the main process handling the ui/xwindows.

..edit
And itīs not only about logging it starts xorg but those options after that command just tell process where it should put it's log file. Google or some other can tell what the other options are.

Mentalist Traceur 2010-10-15 13:18

Re: Disable Xorg loggin?
 
This is an ancient thread, but it's the only one I see on the issue. I myself have been wondering if there's any point to keep the logging going. I more than understand why Xorg itself it important - it runs the actual window system.

But does the log itself have any importance? I get the impression it would be better on battery life and everything else if xorg wasn't constantly asking for disk writes and such.

christoph 2010-10-15 13:31

Re: Disable Xorg loggin?
 
xorg only logs on startup.

pelago 2010-10-15 13:32

Re: Disable Xorg loggin?
 
Quote:

Originally Posted by Mentalist Traceur (Post 841897)
But does the log itself have any importance? I get the impression it would be better on battery life and everything else if xorg wasn't constantly asking for disk writes and such.

You'll notice the logfile is in /tmp. This is not a "real" folder on disc, and instead is just kept in memory, so the impact on battery life shouldn't be too bad. Plus it's not a very verbose log (mine is just 8k after 10 days of uptime), so it's not taking up much memory either.

Mentalist Traceur 2010-10-15 13:40

Re: Disable Xorg loggin?
 
Ahhh. Alright. Thank you. I was looking around in the XOrg wiki, but it's always nice to see how quickly answers come on here.

Especially the /tmp being in memory bit. I wouldn't have even known that was the case from the official X.Org documentation, or would've taken forever to find it.

pelago 2010-10-15 13:50

Re: Disable Xorg loggin?
 
Quote:

Originally Posted by Mentalist Traceur (Post 841919)
Especially the /tmp being in memory bit. I wouldn't have even known that was the case from the official X.Org documentation, or would've taken forever to find it.

/tmp being in memory is a Maemo-specific thing, so you wouldn't have found it in the X.org docs.

Alex Atkin UK 2010-10-15 14:30

Re: Disable Xorg loggin?
 
I was wondering if you can change that line myself for other reasons. I would like to remove the "-nolisten tcp" so I can run desktop apps with output on the N900. I realise there are other ways to do it, but its faster to do it directly rather than over SSH.

matthew maude 2010-10-15 19:32

Re: Disable Xorg loggin?
 
isn't xorg the display system?
therefore stopping it would kill the display

dchky 2010-10-16 14:32

Re: Disable Xorg loggin?
 
Quote:

Originally Posted by matthew maude (Post 842144)
isn't xorg the display system?
therefore stopping it would kill the display

Yup, though it doesn't just kill the display, the N900 reboots : )

If you mess up the argument list you can quite easily end up in a reboot loop - flashing is the only fix.

d-iivil 2010-10-17 08:31

Re: Disable Xorg loggin?
 
I'd like to know how to shutdown and restart xorg without rebooting the device. Any ideas?

dchky 2010-10-17 10:27

Re: Disable Xorg loggin?
 
Quote:

Originally Posted by D-Iivil (Post 843119)
I'd like to know how to shutdown and restart xorg without rebooting the device. Any ideas?

You would need to disable the watchdog - I believe this is what is causing the reboot - I think you can only do that in R&D mode?

d-iivil 2010-10-17 10:39

Re: Disable Xorg loggin?
 
Quote:

Originally Posted by dchky (Post 843204)
You would need to disable the watchdog - I believe this is what is causing the reboot - I think you can only do that in R&D mode?

Not an issue to me, but what would be the correct commands to safely shutdown the xorg and then bring it back to life?

pigeond 2012-03-14 21:30

Re: Disable Xorg loggin?
 
I'd like to do the same - restarting Xorg without a reboot.

So is that true there is no way to disable the watchdog without being in R&D mode?

I also found that Xorg is started by dsmetool in /etc/event.d/xomap with a -r switch. How is this different from the watchdog we're talking about?

Thanks.

vi_ 2012-03-15 19:03

Re: Disable Xorg loggin?
 
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.

OMOIKANE 2012-06-13 22:19

Re: Disable Xorg loggin?
 
Someone plz tell me why Xorg.0.log file copied from /tmp to /home/user every reboot or shutdown? How to disable that or logging?
http://autogrom.ru/files/Screenshot-20120614-020908.jpg

reinob 2012-06-14 07:00

Re: Disable Xorg loggin?
 
I gues Xorg.0.log is copied to /home/user so that you can actually have a look at the log in case it's necessary.

This is done at /etc/event.d/xomap, where BTW you can change the startup options (look for variable "XORG_OPTIONS") as well as the parameters for dsmetool (remove "-r" if you don't want dsme to reboot the N900 when X dies or is killed -> but then you'd need a framebuffer as well as a way to change to another virtual terminal, and obviously a listening terminal (getty)).

The cp /tmp/Xorg.0.log /home/user is done by the post-stop script, which presumably happens when you (cleanly?) reboot the N900.

OMOIKANE 2012-06-14 17:05

Re: Disable Xorg loggin?
 
Thanx! Just removed post-stop script & changed logverbose to 0
Removing -logfile and -logverbose leads to unbootable device.


All times are GMT. The time now is 09:49.

vBulletin® Version 3.8.8