Archives par mot-clé : KDE

Bureau pour Linux

KDE and video mode not supported [SOLVED]

Today, in KDE, I have started a windows application throuh wine. The applicaiton tried to change the video mode, and my screen turned blank with « Video mode not supported ». This means that the resolution or refresh rate are not supported by the screen.

Alright, I restart my X11 server. I can log in, and during the initialisation of the KDE session, the screen went blank again. Usually this is configured in /etc/X11/xorg.conf, but this is obviously correct since I have the KDE login manager (kdm). Something during in KDE changes that.

My first idea was that the wine applicaiton was still in the KDE session. Being exectuted during the startup, it would push the new unsupported video mode.

Actually, it’s much more simple. There is a configuration file called ~/.kde4/share/config/krandrrc which defines the resolution, à la randr (X Resize and Rotate Extension)

Gérer les raccourcis claviers (comme un geek)

Hier, j’expliquais comment modifier les raccourcis clavier de KDE les plus courants.

On peut faire la même chose de façon un peu plus geek, ou disons le franchement un peu moins simple.

Dans KDE 3, les programmes peuvent recevoir des messages via DCOP1.

Par exemple, pour afficher/masquer le bureau, on peut exécuter la commande:
dcop kicker kicker toggleShowDesktop
Traduction (de droite à gauche) Continuer la lecture de Gérer les raccourcis claviers (comme un geek)

  1. Desktop communication protocol []

Afficher ou masquer le bureau

Sous Windows, il y a un raccourci clavier que j’utilise souvent: Win+D. Il Permet de réduire toutes les fenêtres pour afficher de son bureau. En recomposant Win+D, on réouvre les fenêtres réduites auparavant. C’est très pratique pour ouvrir un document placé sur son bureau, par exemple.

Sous KDE, le raccourci clavier équivalent est Ctrl+Alt+D, par défaut. Mais on peut évidemment changer cela, très simplement. Voilà comment faire pour utiliser Win+D qui a l’avantage d’être plus court (mais l’inconvénient de faire allusion à un système d’exploitation épouvantable, diront certains). Continuer la lecture de Afficher ou masquer le bureau

Kde 3.5 on Gentoo

After syncing my gentoo portage, I have discovered many conflicts in my portage tree. KDE 3.5 has been marked stable on amd64, but the update could not be straightforward because of blocking packages.

I quickly found out that there was a conflict between monolithic packages and modulized packages (like kdebase vs kdebase-meta which simply requires konsole, kstart, kdepasswd, etc.) It took me much more time to understand the source of this conflict. It was pretty simple, though. In my world file, there was the very monolithic kde-base/kde (which was a mistake because I uninstalled it long ago).
Then, I struggle longuer with the compilation of the individual packages. Whatever the order I tried, I was stopped with the error: xxx.moc: No such file or directory For instance:
make[1]: Entering directory `/var/tmp/portage/kdialog-3.5.0/work/kdialog-3.5.0'
Making all in kdeeject
make[2]: Entering directory `/var/tmp/portage/kdialog-3.5.0/work/kdialog-3.5.0/kdeeject'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/kdialog-3.5.0/work/kdialog-3.5.0/kdeeject'
Making all in kdialog
make[2]: Entering directory `/var/tmp/portage/kdialog-3.5.0/work/kdialog-3.5.0/kdialog'
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o kdialog.o `test -f 'kdialog.cpp' || echo './'`kdialog.cpp
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o widgets.o `test -f 'widgets.cpp' || echo './'`widgets.cpp
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o klistboxdialog.o `test -f 'klistboxdialog.cpp' || echo './'`klistboxdialog.cpp
klistboxdialog.cpp:25:30: klistboxdialog.moc: No such file or directory
make[2]: *** [klistboxdialog.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdialog-3.5.0/work/kdialog-3.5.0/kdialog'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdialog-3.5.0/work/kdialog-3.5.0'
make: *** [all] Error 2
!!! ERROR: kde-base/kdialog-3.5.0 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
ebuild.sh, line 1248: Called kde-meta_src_compile
kde-meta.eclass, line 410: Called kde_src_compile
kde.eclass, line 164: Called kde_src_compile 'all'
kde.eclass, line 306: Called kde_src_compile 'myconf' 'configure' 'make'
kde.eclass, line 302: Called die
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.
Done.

The clue was

/usr/share/aclocal/linc.m4:1: warning: underquoted definition of AM_PATH_LINC
run info '(automake)Extending aclocal'

It sounds like automake was not up to date. Unfortunately it was (almost)
kro64 bin # emerge -s automake
Searching...
[ Results for search key : automake ]
[ Applications found : 2 ]
* sys-devel/automake
Latest version available: 1.9.6-r2
Latest version installed: 1.9.6-r1
Size of files: 747 kB

I then gave a try to

cd /usr/bin/
mv automake automake-wrapper
ln -s automake-1.9 automake

And that worked 😉 automake-wrapper was guilty!

Hope this helps!