https://wiki.archlinux.org/api.php?action=feedcontributions&user=Ahammel&feedformat=atomArchWiki - User contributions [en]2024-03-29T05:23:34ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Qingy&diff=201629Qingy2012-05-15T17:39:14Z<p>Ahammel: /* Synaptic touchpad and keyboard issue */</p>
<hr />
<div>[[Category:Display managers]]<br />
[[Category:Eye candy]]<br />
[[tr:Qingy]]<br />
{{i18n|Qingy}}<br />
[http://qingy.sourceforge.net/ Qingy] is a replacement for [[Getty]] and login-managers like slim, kdm gdm and so on, using [http://www.directfb.org DirectFB] to provide a fast, nice GUI without the overhead of the X Window System. It allows users to log in and start the session of their choice (text console, gnome, kde, wmaker, etc.). Running several X sessions is also possible.<br />
<br />
==How to get qingy?==<br />
First you need a working DirectFB.<br />
I'm recommending [http://wiki.archlinux.org/index.php/Uvesafb Uvesafb] but if you have some graphical issues with it use vesafb. Qingy may not work with [[KMS]].<br />
<br />
A package is available in the [community] repo. To install:<br />
# pacman -S qingy <br />
<br />
Several extra themes are also available. In [community] repo, there is an Arch specific theme:<br />
# pacman -S qingy-theme-arch<br />
<br />
A package of several various themes is available in AUR:<br />
<br />
*[https://aur.archlinux.org/packages.php?do_Details=1&ID=5501 qingy-themes]<br />
<br />
==Replace *getty with qingy==<br />
To use qingy, you'll need to edit /etc/inittab.<br />
<br />
Replace:<br />
c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux<br />
c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux<br />
c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux<br />
c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux<br />
c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux<br />
c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux<br />
<br />
with:<br />
c1:2345:respawn:/sbin/qingy tty1<br />
c2:2345:respawn:/sbin/qingy tty2<br />
c3:2345:respawn:/sbin/qingy tty3<br />
c4:2345:respawn:/sbin/qingy tty4<br />
c5:2345:respawn:/sbin/qingy tty5<br />
c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux<br />
<br />
Qingy's author suggest to keep agetty on a console (here on console 6) as a safety measure as qingy is still beta software.<br />
<br />
Because qingy uses tty0-9 insead of vc/1-6 so you need add tty to /etc/securetty (NOTE : this should no longer be necessary since vc/1-6 have been replaced by tty0-9 with the new version of agetty): <br />
#<br />
# /etc/securetty<br />
#<br />
console<br />
vc/1<br />
vc/2<br />
vc/3<br />
vc/4<br />
vc/5<br />
vc/6<br />
tty0<br />
tty1<br />
tty2<br />
tty3<br />
tty4<br />
tty5<br />
tty6<br />
tty7<br />
<br />
==Configuring qingy==<br />
<br />
You can configure qingy by editing /etc/qingy/settings.<br />
<br />
The default settings for X are fine so only edit them if you really know what you are doing.<br />
# Full path to the X server<br />
#x_server = "/usr/bin/Xorg"<br />
# Full path to the 'xinit' executable<br />
xinit = "/usr/bin/xinit"<br />
# Parameter we should pass to the X server<br />
x_args = "-nolisten tcp -br"<br />
<br />
I recommend to set <br />
log_facilities = console, file<br />
so you can look for errors in /var/log/qingy.log, too.<br />
<br />
All other options are well explained.<br />
<br />
You may need to set the path to the X server e.g.<br />
# Full path to the X server<br />
x_server = "/usr/bin/X"<br />
<br />
==Starting X==<br />
<br />
Please do note that .xinitrc is different from .xsession. The default login script, .xinitrc, works with startx, but graphical login managers generally do not look for .xinitrc. Instead, they look for a file named .xsession in your home directory.<br />
<br />
If you want to start X with qingy you need to edit your .xsession.<br />
<br />
Here a default .xsession for qingy.<br />
#!/bin/sh<br />
exec <login-shell command> <window manager starter><br />
An example:<br />
#!/bin/sh<br />
exec bash --login -c 'openbox-session'<br />
<br />
The start of the window manager using a login shell is needed because qingy starts the X-session directly without the help of a shell. This causes issues like no umlauts in xterm and malfunction of control keys like "Home", "End", "Del" and so on in the terminal.<br />
<br />
For more details, visit the Ubuntu CustomXSession wiki at [https://wiki.ubuntu.com/CustomXSession]<br />
<br />
If you want your X sessions to be started in an active state, you may need to add the following lines to the end of /etc/pam.d/qingy.<br />
session optional /lib/security/pam_loginuid.so<br />
session optional /lib/security/pam_ck_connector.so<br />
<br />
Active sessions allow you to access network controles, shutdown/susspend/hibernate funtionality, and drives you wish to mount via your DE/WM. You may check the status of your X session with the ck-list-sessions command. If the "active" value is set to "TRUE", than your session is active and you should have said funtionality. If not, your session should lack the privilages needed.<br />
<br />
==Adding a session entry==<br />
<br />
If you've changed the variable x_sessions or text_session in the config file of qingy replace the following paths with the path you've set.<br />
<br />
===Text mode session===<br />
<br />
Create a file /etc/qingy/sessions/<sessionname>.<br />
<br />
The file name is shown as entry in the session list.<br />
<br />
The file should be a shell script. For an example have a look into /etc/qingy/sessions/emacs.<br />
<br />
===X mode session===<br />
<br />
Create the folder /etc/X11/Sessions/ and save a new script file into it. (see Text mode session)<br />
<br />
The name of the file is shown in the session list.<br />
<br />
==Troubleshooting==<br />
<br />
=== Synaptic touchpad and keyboard issue ===<br />
<br />
Qingy (and quite possibly other DirectFB applications) has some issues using Synaptics touchpad. Also the keyboard can behave strangely (like if each keys were pressed twice).<br />
<br />
This can be solved by adding:<br />
<br />
*If each keypress was doubled<br />
disable-module=keyboard<br />
*If mouse acts funny<br />
disable-module=ps2mouse<br />
disable-module=serialmouse<br />
<br />
to /etc/directfbrc. If the file does not exist, create it. This will enable you to use your touchpad, however some extra functionality like tapping or tap-dragging might not work.<br />
<br />
On computers with several pointing devices, such as the Lenovo ThinkPad, it may be necessary to add the line:<br />
<br />
disable-module=linux_input<br />
<br />
to /etc/directfbrc. This should correct both the mouse and keyboard issues.<br />
<br />
=== ConsoleKit locks tty ===<br />
<br />
If you use ck-launch-session to start your session, then console-kit-daemon will lock currently active tty on it's first start. This is especially nasty if you use x_server_tty=qingy_tty parameter: tty you've logged in first becomes disposable.<br />
<br />
There is a bug about this behavior [https://bugs.freedesktop.org/show_bug.cgi?id=29920] and a workaround: start console-kit-daemon on some useless tty, i.e. 63 by adding this to /etc/rc.local:<br />
<br />
openvt -c 63 -f -- console-kit-daemon --no-daemon &</div>Ahammel