Difference between revisions of "Talk:GDM"

From ArchWiki
Jump to: navigation, search
(Close finished tasks.)
(Incomplete removal of gdm)
 
(59 intermediate revisions by 12 users not shown)
Line 1: Line 1:
== <s> New configuration section </s>==
+
== "Make the power button interactive" no longer possible with GDM 3.18 ==
I would propose the follwing "configuration section. Most of the subsections are easier and up-to-date versions of those on the Gnome page and on the GDM page. No need to export variables anymore. If this is ok we should also merge the Gnome page.
+
:: I like the use of dconf profile files, but I believe we shouldn't tell users to echo config to new files. I think it would be better to tell users to create a new file in the proper location, then provide a code block which they can copy-paste into that file. --[[User:Stefanwilkens|stefanwilkens]] ([[User talk:Stefanwilkens|talk]]) 21:34, 14 October 2013 (UTC)
+
  
:: I originally copied the content from the login screen section in the GNOME article over here because there was a merge request. I feel the quality of this content you have posted here is far higher so I have replaced what was there with this. This covers exactly the same points as the original content and a few more as well so no info is lost. In the original content it said the gsettings tweaks wouldn't work without "exporting the gdm session variables" but the section explaining how to do that no longer existed so they wouldn't be much help anyway. [[User:Chazza|Chazza]] ([[User talk:Chazza|talk]]) 21:17, 14 January 2014 (UTC)
+
I have been attempting to change my power button's behaviour from suspend to interactive as per the instructions here without success. Looking into it, it seems with Gnome 3.18 the developers removed the "button-*" configuration options: https://bugzilla.gnome.org/show_bug.cgi?id=753713 [[User:Rjackson|Rjackson]] ([[User talk:Rjackson|talk]]) 17:47, 1 November 2015 (UTC)
  
::: In a later edit I have removed the echo commands and replaced them with touch commands and text to copy into the file. Each command comes with a brief line explaining what it's for. Hope this is better. [[User:Chazza|Chazza]] ([[User talk:Chazza|talk]]) 21:57, 14 January 2014 (UTC)
+
:It would seem the options to change the power button, found in org.gnome.settings-daemon.plugins.power as the power-button-action, currently allows 3 different values: nothing, suspend, and hibernate. Why anything else isn't available is beyond me. I've set it to nothing at the moment, just to avoid accidentally suspending when I mean to power down. While the bug report referenced by Rjackson describes the issue, the resolution makes this confusing, as it indicates a fix was pushed out previously. Perhaps the fix resulted in the current behaviour. [[User:CubeTheThird|CubeTheThird]] ([[User talk:CubeTheThird|talk]]) 06:46, 21 November 2015 (UTC)
:::: Great work. Direct instruction is better than echo commands. --[[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 12:43, 3 February 2014 (UTC)
+
  
==<s> Configuration </s> ==
+
::Thanks for looking into this both of you. If the OP could that the suspend/hibernate/nothing options do still work then the section can be updated accordingly. -- [[User:Chazza|Chazza]] ([[User talk:Chazza|talk]]) 15:55, 21 November 2015 (UTC)
You can install {{aur|gdm3setup}} from the AUR to configure GDM, or use the following instructions that use dconf profile files.
+
  
==== Login background image ====
+
== <s>Incomplete removal of gdm</s> ==
  
To change the wallpaper of the login screen use
+
Re [https://wiki.archlinux.org/index.php?title=GDM&type=revision&diff=428137&oldid=426815], thanks for flagging this up [[User:Ssri|Ssri]]. I'm just wondering if it would be better to file a bug report. As far as I can see, the GDM user and group are created by the [https://projects.archlinux.org/svntogit/packages.git/tree/trunk/gdm.install?h=packages/gdm gdm install file] so they should really be removed by the install file as well - it would just be a matter of adding the appropriate commands to post_remove. -- [[User:Chazza|Chazza]] ([[User talk:Chazza|talk]]) 10:02, 28 March 2016 (UTC)
  
# mkdir /opt/login
+
:+1, should be a bug. Example where it is done in post_remove:[https://projects.archlinux.org/svntogit/community.git/tree/trunk/polipo.install?h=packages/polipo] like you suggest. I faintly remember there was a dev mailing list thread about uid/gid handling, but cannot find it right now (see also [[DeveloperWiki:UID_/_GID_Database]]). --[[User:Indigo|Indigo]] ([[User talk:Indigo|talk]]) 10:40, 28 March 2016 (UTC)
# echo -e "[org/gnome/desktop/background]\npicture-uri='file:///opt/login/wallpaper.jpg'" > /etc/dconf/db/gdm.d/01-background
+
# cp [YOUR FILE] /opt/login/wallpaper.jpg
+
# dconf update
+
  
where [YOUR FILE] needs to be a *.jpg picture.
+
::My mistake. Apparently, not removing the user and group is the correct behaviour - {{Bug|48757}}. -- [[User:Chazza|Chazza]] ([[User talk:Chazza|talk]]) 16:08, 30 March 2016 (UTC)
  
==== Logo on login screen ====
+
:::Ah ok, thanks for following up. So polipo is a culprit squid. Anyhow, looking into it made me find an unowned {{ic|/var/gdm}} path, wherever that came from (very probably my own tinkering in 2013). It would be nice to have a pacman tip for finding such files (I used {{Aur|lostfiles}}). If they change packaging policy for the user/groups, perhaps a few hits from the past. edit: we have: [[Pacman/Tips_and_tricks#Identify_files_not_owned_by_any_package]]. Added [https://wiki.archlinux.org/index.php?title=GDM&type=revision&diff=428742&oldid=428137]. --[[User:Indigo|Indigo]] ([[User talk:Indigo|talk]]) 17:22, 30 March 2016 (UTC)
  
To display a logo on your login screen use
+
::::Thanks guys for reporting itI added this entry after being having to deal with this error message again (this time after compiling xscreensaver-arch-logo).  It has been several months since I last dealt with itThis entry was more of a mental note than anything but I thought a few others would find it usefulThanks Indigo for the handy link! [[User:Ssri|Ssri]] ([[User talk:Ssri|talk]]) 21:06, 3 April 2016 (UTC)
 
+
# mkdir /opt/login
+
# echo -e "[org/gnome/login-screen]\nlogo='/opt/login/logo.png'" > /etc/dconf/db/gdm.d/02-logo
+
  # cp [YOUR FILE] /opt/login/logo.png
+
# dconf update
+
 
+
where [YOUR FILE] needs to be a *.png picture.
+
 
+
==== Larger font for login ====
+
 
+
To change the font size of the login screen use
+
 
+
# echo -e "[org/gnome/desktop/interface]\ntext-scaling-factor='1.25'" > /etc/dconf/db/gdm.d/03-scaling
+
# dconf update
+
 
+
==== Turning off the sound ====
+
 
+
This tweak disables the audible feedback heard when the system volume is adjusted (via keyboard) on the login screen.
+
 
+
  # echo -e "[org/gnome/desktop/sound]\nevent-sounds='false'" > /etc/dconf/db/gdm.d/04-sound
+
  # dconf update
+
 
+
==== Make the power button interactive ====
+
 
+
The default installation sets the power button to suspend the system. '''''Power off'''''  or  '''''Show dialog'''''  is a better choice.
+
 
+
  # echo -e "[org/gnome/settings-daemon/plugins/power button]\npower='interactive'\nhibernate='interactive'" > /etc/dconf/db/gdm.d/05-power
+
# dconf update
+
 
+
{{Warning|Please note that the [[Acpid|acpid]] daemon also handle the "power button" an "hibernate button" event. Running both systems at the same time may lead to unexpected behaviour.}}
+
 
+
==== Prevent suspend when closing the lid ====
+
 
+
On some systems it happens that your laptop suspends when you are closing the lid despite having set the options ''Laptop lid close action on battery'' and ''Laptop lid close action on AC'' to ''blank''. If this is the case, append the following line to {{ic|/etc/systemd/logind.conf}}:
+
 
+
HandleLidSwitch=ignore
+
 
+
==== GDM keyboard layout ====
+
 
+
GDM does not know about your GNOME 3 desktop keyboard settings. To change keyboard settings used by GDM, set your layout using Xorg configuration. Refer to this section of the [[Beginners'_Guide#Non-US_keyboard|Beginner's Guide.]]
+

Latest revision as of 21:06, 3 April 2016

"Make the power button interactive" no longer possible with GDM 3.18

I have been attempting to change my power button's behaviour from suspend to interactive as per the instructions here without success. Looking into it, it seems with Gnome 3.18 the developers removed the "button-*" configuration options: https://bugzilla.gnome.org/show_bug.cgi?id=753713 Rjackson (talk) 17:47, 1 November 2015 (UTC)

It would seem the options to change the power button, found in org.gnome.settings-daemon.plugins.power as the power-button-action, currently allows 3 different values: nothing, suspend, and hibernate. Why anything else isn't available is beyond me. I've set it to nothing at the moment, just to avoid accidentally suspending when I mean to power down. While the bug report referenced by Rjackson describes the issue, the resolution makes this confusing, as it indicates a fix was pushed out previously. Perhaps the fix resulted in the current behaviour. CubeTheThird (talk) 06:46, 21 November 2015 (UTC)
Thanks for looking into this both of you. If the OP could that the suspend/hibernate/nothing options do still work then the section can be updated accordingly. -- Chazza (talk) 15:55, 21 November 2015 (UTC)

Incomplete removal of gdm

Re [1], thanks for flagging this up Ssri. I'm just wondering if it would be better to file a bug report. As far as I can see, the GDM user and group are created by the gdm install file so they should really be removed by the install file as well - it would just be a matter of adding the appropriate commands to post_remove. -- Chazza (talk) 10:02, 28 March 2016 (UTC)

+1, should be a bug. Example where it is done in post_remove:[2] like you suggest. I faintly remember there was a dev mailing list thread about uid/gid handling, but cannot find it right now (see also DeveloperWiki:UID_/_GID_Database). --Indigo (talk) 10:40, 28 March 2016 (UTC)
My mistake. Apparently, not removing the user and group is the correct behaviour - FS#48757. -- Chazza (talk) 16:08, 30 March 2016 (UTC)
Ah ok, thanks for following up. So polipo is a culprit squid. Anyhow, looking into it made me find an unowned /var/gdm path, wherever that came from (very probably my own tinkering in 2013). It would be nice to have a pacman tip for finding such files (I used lostfilesAUR). If they change packaging policy for the user/groups, perhaps a few hits from the past. edit: we have: Pacman/Tips_and_tricks#Identify_files_not_owned_by_any_package. Added [3]. --Indigo (talk) 17:22, 30 March 2016 (UTC)
Thanks guys for reporting it. I added this entry after being having to deal with this error message again (this time after compiling xscreensaver-arch-logo). It has been several months since I last dealt with it. This entry was more of a mental note than anything but I thought a few others would find it useful. Thanks Indigo for the handy link! Ssri (talk) 21:06, 3 April 2016 (UTC)