Buscar aquí

miércoles, 27 de agosto de 2008

Shutdown and reboot buttons are missing

Quote:
Originally Posted by Zoogie View Post
For those who are running Xgl nested, the reason why you lose the "shutdown/reboot/etc" options is because the Xgl server running at :1 isn't authorized to talk to GDM.

My (rather hacky) solution was to add the following to my Xgl startup script (just before running gnome-session):

Code:
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
This clones the xauth cookie from :0 into :1.

Let me know if this works for you; I've tried it on two systems now and it seems to work, at least when using GDM.
this worked for me too... thx a lot

here is my /usr/bin/startxgl
Code:
#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1

cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"

exec dbus-launch --exit-with-session gnome-session
\m/
Skukfas is offline Reply With Quote
Old April 6th, 2007 #72
annihilus06
First Cup of Ubuntu

Join Date: Apr 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Shutdown and reboot buttons are missing

Quote:
Originally Posted by AlwaysLearning View Post
Rather than mucking around with Xgl settings I found a simpler solution that worked for me under GNOME/Beryl. It *may* also work under Kubuntu. Here's what I did...

In a Terminal window:

Code:
sudo touch /usr/local/bin/fix-logout-dialog.sh
sudo chmod 755 /usr/local/bin/fix-logout-dialog.sh
sudo gedit /usr/local/bin/fix-logout-dialog.sh
Then, inside fix-logout-dialog.sh I have:

Code:
#!/bin/sh

# Get my cookies in place for Restart and Shutdown buttons on Logout Window...
export DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
As a simple test, click your "Log off" button and make sure that the Restart and Shutdown buttons are *NOT* there. Then, in the Terminal window run:

Code:
/usr/local/bin/fix-logout-dialog.sh
Note, you don't need to sudo it. Click your "Log off" button again and the Reboot and Shutdown buttons should now be there.

As a final step, go to System/Preferences/Sessions, select the Startup Programs tab and add an entry for /usr/local/bin/fix-logout-dialog.sh - the Restart and Shutdown buttons should now stay there consistently.

Could someone try this out under Kubuntu and let me know if it works?

Thanks alot, this is what worked best for me. I had tried the solution of adding a file under /etc/X11/sessions and that worked also, but for some reason this method disabled my icon theme. The above method did only what was wanted, enabled my shutdown/restart.

Thanks again AlwaysLearning!
annihilus06 is offline Reply With Quote
Old June 12th, 2007 #73
maver1ck
First Cup of Ubuntu

Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Shutdown and reboot buttons are missing

Quote:
Originally Posted by annihilus06 View Post
Thanks alot, this is what worked best for me. I had tried the solution of adding a file under /etc/X11/sessions and that worked also, but for some reason this method disabled my icon theme. The above method did only what was wanted, enabled my shutdown/restart.

Thanks again AlwaysLearning!
I tried those solution on kubuntu and it doesn't work.

My scripts:

maverick@maverick:~% cat /usr/share/xsessions/xgl.desktop 3:23
[Desktop Entry]
Encoding=UTF-8
Name=Xgl
Comment=Start an Xgl Session
Exec=/usr/bin/startxgl
Icon=
Type=XSession

maverick@maverick:~% cat /usr/bin/startxgl 3:24
#!/bin/bash
Xgl :1 -fullscreen -ac -accel xvbuffer -accel glxbuffer -br &
DISPLAY=:1
export KDEWM="/usr/bin/beryl-manager"
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec startkde

Any idea what could be wrong ?

Regards,
Maciek
maver1ck is offline Reply With Quote
Old June 12th, 2007 #74
maver1ck
First Cup of Ubuntu

Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Shutdown and reboot buttons are missing

I found a solution:

In /var/run/xdmct directory you should make some symbolic links:
(if you xserver is on :0 and xgl on :1)

maverick:/var/run/xdmctl# ln -s dmctl-:0 dmctl-:1
maverick:/var/run/xdmctl# ln -s xdmctl-:0 xdmctl-:1

That's all.

Regards,
Maciek
maver1ck is offline Reply With Quote
Old June 20th, 2007 #75
stepol
First Cup of Ubuntu

Join Date: Feb 2007
Location: Belgium
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Re: Shutdown and reboot buttons are missing

Quote:
Originally Posted by maver1ck View Post
I found a solution:

In /var/run/xdmct directory you should make some symbolic links:
(if you xserver is on :0 and xgl on :1)

maverick:/var/run/xdmctl# ln -s dmctl-:0 dmctl-:1
maverick:/var/run/xdmctl# ln -s xdmctl-:0 xdmctl-:1

That's all.

Regards,
Maciek
The first solution that works on KDE .
Thanks Maverick
stepol is offline Reply With Quote
Old July 3rd, 2007 #76
K_Soze
5 Cups of Ubuntu

K_Soze's Avatar

Join Date: Jun 2007
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Shutdown and reboot buttons are missing

Quote:
Originally Posted by maver1ck View Post
I found a solution:

In /var/run/xdmct directory you should make some symbolic links:
(if you xserver is on :0 and xgl on :1)

maverick:/var/run/xdmctl# ln -s dmctl-:0 dmctl-:1
maverick:/var/run/xdmctl# ln -s xdmctl-:0 xdmctl-:1

That's all.

Regards,
Maciek
I am running KUBUNTU but I don't see a xdmct directory, I see a xdmctl directory?

The other question I have is how exactly and where do I make these links?

Can anyone help?

Last edited by K_Soze; July 3rd, 2007 at 03:40 PM. Reason: poor grammer
K_Soze is offline Reply With Quote
Old July 4th, 2007 #77
the_saint07
First Cup of Ubuntu

Join Date: Jun 2007
Location: Dominican Republic
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Shutdown and reboot buttons are missing

Please help...

When I originally instaled beryl i encountered this problem and applying the first solution mentioned could deal with it.

But now after some updates or something my two buttons are gone again. i check all the scripts i made the first time and all of them are intact. I tryed the solution on post 62 but it didn't work for me.

I couldn't apply the last maverick solution because didn't find the xdmcl directory.
__________________
Acer Aspire 5102WLMi, AMD Turion 64x2, Atheros Wireless, ATI Xpress 1100, 1.5 Gb, 100 Gb, Ubuntu 7.04 Feisty, Beryl and a lot of luck.
Smile, it confuses people.
the_saint07 is offline Reply With Quote
Old July 16th, 2007 #78
sambehera
5 Cups of Ubuntu

sambehera's Avatar

Join Date: Apr 2007
Location: mumbai
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Shutdown and reboot buttons are missing

Quote:
Originally Posted by maver1ck View Post
I found a solution:

In /var/run/xdmct directory you should make some symbolic links:
(if you xserver is on :0 and xgl on :1)

maverick:/var/run/xdmctl# ln -s dmctl-:0 dmctl-:1
maverick:/var/run/xdmctl# ln -s xdmctl-:0 xdmctl-:1

That's all.

Regards,
Maciek
thanks... this does solve the problem ... but only for my root account..

i added the following lines to my "startxgl.sh" script...
Code:
ln -s /var/run/xdmctl/dmctl-:0 /var/run/xdmctl/dmctl-:1
ln -s /var/run/xdmctl/xdmctl-:0 /var/run/xdmctl/xdmctl-:1
the soflink (symlink) happens through this script only when i log in as root... else i have to create the symlinks myself (as root) in order to see the buttons....
the symbolic links also disappear every time i reboot... is there any way to make them stay permanently in "/var/run/xdmctl" ?

if not, then is there any other script (which is always run with root privelages at startup) that i can append these lines to :

Code:
ln -s /var/run/xdmctl/dmctl-:0 /var/run/xdmctl/dmctl-:1
ln -s /var/run/xdmctl/xdmctl-:0 /var/run/xdmctl/xdmctl-:1
so that the symbolic links are always created in /var/run/xdmctl at startup?

is there any way i can add these commands to a script and have them create the symlinks at startup (as root) so that i can see the buttons as any user running xgl?
__________________
Quote:
|| -- If we can really understand the problem, the answer will come out of it, because the answer is not separate from the problem -- ||

Last edited by sambehera; July 16th, 2007 at 04:34 AM.
sambehera is offline Reply With Quote

No hay comentarios: