<pre style="font-family: arial,helvetica,sans-serif;"><font size="2"><i><span style="font-family: arial,helvetica,sans-serif;">> On Tue, Jan 12, 2010 at 3:54 PM, Ross Campbell <</span><a style="font-family: arial,helvetica,sans-serif;" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">ross.campbell at gmail.com</a><span style="font-family: arial,helvetica,sans-serif;">>wrote:</span><br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;">></span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;"> On Tue, Jan 12, 2010 at 12:49 PM, sdavmor <<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">sdavmor at systemstheory.net</a>><br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;"> wrote:<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">> Ross Campbell wrote:<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>><br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> On Tue, Jan 12, 2010 at 11:42 AM, sdavmor<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> <<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">sdavmor at systemstheory.net</a>> wrote:<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>><br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>> Stuart Larson wrote:<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>>><br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>>> One quick question since everything else on my upgrade from<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>>> Ubuntu 9.04 to 9.10 went very well.<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>>><br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>>> Before the upgrade it would autologin and start mythtv. Now<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>>> I get the user login screen. Once I select the user<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>>> (there's only one on our media center server) and put in<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>>> the user password everything proceeds as before. Where do I<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>>> need to go to force-fix this so it starts up and logs<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>>> itself in as it used to do?<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>><br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>> If you are running mythbuntu on your Ubuntu system, you can<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>> just go to the mythbuntu control centre. There you can<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>> disable/enable the autologin. There is a way to manually do<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>>> it as well but you can google that as easily as any of us.<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>><br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>> I googled it for the OP (I believe it's basically renaming the custom<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>> config file in /etc/gdm to custom.conf, and ensuring<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>>>> your username is in it.<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>><br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> I believe some gnome behaviors changed between 9.04 and 9.10 that<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> have more subtle impact on the autologin functionality.<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>><br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> In 9.04, I had autologin enabled, and whenever my myth box hung,<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> I'd hit ctrl-alt-backspace to restart the xserver. Autologin would<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> run a timer and then automatically start mythfrontend at end of<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> time if I did nothing. This was a simple "panic button" fix for<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> myhtv with a high WAF.<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>><br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> With 9.10, initial boot autologin and start of mythfrontend works<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> as desired, HOWEVER... ctrl-alt-backspace is disabled by default.<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> After re-enabling it, I found that gdm doesn't auto-re-login, and<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> when I manually login, it doesn't auto-re-start mythfrontend.<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>><br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> Anyone know how to change this back to the 9.04 behavior?<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>><br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> Also, here's how to re-enable ctrl-alt-backspace -<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>><br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;"><a href="http://www.ubuntugeek.com/how-to-enabledisable-ctrlaltbackspace-in-ubuntu-9-10-karmic.html">http://www.ubuntugeek.com/how-to-enabledisable-ctrlaltbackspace-in-ubuntu-9-10-karmic.html</a><br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> -- IMHO, this may be a useful default for mythbuntu.<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>><br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">>> -Ross<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">><br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">> I haven't tested any of what is on this page, but this link provides<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">> info on "Frontend Auto Login". Option 3 for Karmic mentions dealing<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">> with mythfrontend crashes.<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">><br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;">><br></span><span style="font-family: arial,helvetica,sans-serif;">>>></span><span style="font-family: arial,helvetica,sans-serif;"> <a href="http://www.mythtv.org/wiki/Frontend_Auto_Login#Note_on_Ubuntu_Karmic_.289.10.29">http://www.mythtv.org/wiki/Frontend_Auto_Login#Note_on_Ubuntu_Karmic_.289.10.29</a><br>
></span><span style="font-family: arial,helvetica,sans-serif;">></span><span style="font-family: arial,helvetica,sans-serif;"> ><br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;"><br>
></span><span style="font-family: arial,helvetica,sans-serif;">></span><span style="font-family: arial,helvetica,sans-serif;"> different - that's just process restarting. I'm talking about dealing<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;"> with locked up x session by restarting x and having gdm ALWAYS<br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;"> autologin (not just 1st boot)<br></span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;"><br>
</span><span style="font-family: arial,helvetica,sans-serif;">>></span><span style="font-family: arial,helvetica,sans-serif;"> -Ross<br></span><span style="font-family: arial,helvetica,sans-serif;">></span><br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;">></span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">> What I do is I set both timed and automatic login in custom.conf and it</span><br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;">> works.</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">> </span><br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;">> Just add the following lines to /etc/gdm/custom.conf</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">> </span><br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;">> [daemon]</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">> AutomaticLoginEnable=true</span><br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;">> AutomaticLogin=mythtv</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">> TimedLoginEnable=true</span><br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;">> TimedLogin=mythtv</span><br style="font-family: arial,helvetica,sans-serif;"><br style="font-family: arial,helvetica,sans-serif;"></i>This one bit me today.<br><br>
Even after editing /etc/gdm/custom.conf, autologin would work only on the first boot.<br>If the mythtv user logs out then, it won't autologin again until gdm is restarted.<br>Since <a href="https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/499337">this doesn't look like it's going to be fixed soon</a>, I gathered <a href="http://ubuntuforums.org/showthread.php?t=252935">some</a> <a href="http://digitalmoosetracks.com/blog/mythtv-tip-power-button">tips</a> and found<br>
a workaround. <br><br>First of all, edit the sudoers file to allow the mythtv user to restart gdm without a password:<br>$ sudo visudo<br>Put this at the end of the file:<br># user mythtv can use sudo to restart gdm without a password<br>
mythtv ALL=NOPASSWD: /etc/init.d/gdm restart<br></font><font><font size="2"><br></font></font><font size="2">Then, create the .gdmlogout script in the mythtv user's home dir containing this:<br></font><font size="2">#!/bin/bash<br>
# restart gdm when logging out so autologin can kick in again<br>sudo /etc/init.d/gdm restart<br><br>Remember to make that script executable. </font><font><font><font><font size="2"></font></font></font></font><font size="2">Then tell gdm to run $HOME/.gdmlogout<br>
whenever a user logs out, by editing /etc/gdm/PostSession/Default to contain the following:<br>#!/bin/sh<br>logoutscript="$HOME/.gdmlogout";<br>if [ -x "$logoutscript" ] ; then<br> su $USER -c "$logoutscript"<br>
fi<br>exit 0<br><br>This way, when the mythtv user logs out, gdm will run /home/mythtv/.gdmlogout, which<br>in turn will restart gdm via sudo, without asking for a password. Upon gdm restart, autologin<br>will kick in again.<br>
<br>The rest of the users won't have a .gdmlogout script in their home dir, so<br>nothing will happen when they log out.<br><br>It works for me. Hope that helps.<br></font></pre>