Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alt-F4 now switches consoles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
pbmonster
n00b
n00b


Joined: 04 Oct 2009
Posts: 21

PostPosted: Sun Jan 03, 2010 5:47 pm    Post subject: Alt-F4 now switches consoles Reply with quote

Hi Guys,

I guess my question is trivial, but 15 minutes of google didn't help, so here we go:

After a kernel update from genkernel-2.6.30-r4 to tuxonice-sources-2.6.31-r7 and a bigger world-update (can't pinpoint which of the two brought the change) hitting ALT-F* now switches consoles as well as hitting CTRL-ALT-F*.

I'm using Fluxbox and ALT-F4 is supposed to close a window, switching consoles at the same time is, well, very annoying.
Any ideas?
_________________
“Man cannot live by bread alone; he must have peanut butter.”
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Sun Jan 03, 2010 6:30 pm    Post subject: Reply with quote

What's in your xorg.conf ?
Are you sure you've configured your keyboard correctly ?
Your xorg-server version ?
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sun Jan 03, 2010 9:07 pm    Post subject: Reply with quote

Can you post this :

Code:

# emerge --info
# cat /etc/X11/xorg.conf
# rc-update show


Do you use any fdi file ?
Back to top
View user's profile Send private message
pbmonster
n00b
n00b


Joined: 04 Oct 2009
Posts: 21

PostPosted: Mon Jan 04, 2010 10:32 am    Post subject: Reply with quote

Hi, thanks for the responses!

emerge --info:
Code:

Portage 2.1.6.13 (default/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-tuxonice-r7 x86_64)
=================================================================
System uname: Linux-2.6.31-tuxonice-r7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 04 Jan 2010 09:15:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="cchache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa amd64 apache2 autoipd avahi avi berkdb big-tables bluetooth bzip2 cdparanoia cdr cli consolekit cracklib crypt cups cxx dbus dga divx dri dvd dvdr emacs embedded encode exif fam fbsplash ffmpeg firefox flac fontconfig fortran ftp gcj gd gdbm gif gimp gnuplot gpm gstreamer gzip hal iconv icq imagemagick imap imlib ipod ipv6 jabber java java6 javascript jpeg kde kdehiddenvisibility kpathsea lame latex lcms ldap mad mjpeg mmx mng modules mp3 mp4 mpeg mplayer msn mudflap musepack mysql ncurses nls nocd nptl nptlonly offensive ogg opengl openmp pam pcre pdf perl plotutils png pppd python qt3 qt3support qt4 quicktime raw readline reflection sasl scanner scapy sdl session slang spell spl sse sse2 ssl svg sysfs tcpd theora tiff tk truetype unicode vcd vim-syntax vorbis x11-wm/fluxbox xcb xft xine xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



xorg.conf (last time I opened this file was a year ago during system setup):
Code:

Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
   ModulePath   "/usr/lib64/xorg/modules"
   FontPath     "/usr/share/fonts/misc/"
   FontPath     "/usr/share/fonts/TTF/"
   FontPath     "/usr/share/fonts/OTF"
   FontPath     "/usr/share/fonts/Type1/"
   FontPath     "/usr/share/fonts/100dpi/"
   FontPath     "/usr/share/fonts/75dpi/"
   FontPath     "/usr/share/fonts/corefonts/"
   FontPath     "/usr/share/fonts/intlfonts/"
   FontPath     "/usr/share/fonts/terminus/"
   FontPath     "/usr/share/fonts/cronyx/"
   FontPath     "/usr/share/fonts/freefonts/"

   
EndSection

Section "Module"
   Load  "extmod"
   Load  "xtrap"
   Load  "dri"
   Load  "record"
   Load  "dbe"
   Load  "glx"

    SubSection   "extmod"
   Option   "omit xfree86-dga"
    EndSubSection

EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
   Option "CoreKeyboard"
   Option "XkbRules" "xorg"
   Option "XkbModel" "pc105"
   Option "XkbLayout" "de"
   Option "XkbVariant" "basic"
EndSection

Section "InputDevice"
   Identifier  "Mouse0"
   Driver      "mouse"
   Option       "Protocol" "auto"
   Option       "Device" "/dev/input/mice"
   Option       "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   VendorName   "Monitor Vendor"
   ModelName    "Monitor Model"
EndSection

Section "Device"
   Identifier  "Card0"
   Driver      "intel"
   Option "AccelMethod"   "UXA"
   Option "Tiling"    "False"
   VendorName  "Intel Corporation"
   BoardName   "Mobile GM965/GL960 Integrated Graphics Controller"
   BusID       "PCI:0:2:0"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   DefaultDepth 24
   SubSection "Display"
      Viewport   0 0
      Depth     24
      Modes "1280x800"
   EndSubSection
EndSection


rc-update show:
Code:

acpid | battery      default
           alsasound |         boot
            bootmisc |         boot
             checkfs |         boot
           checkroot |         boot
               clock |         boot
         consolefont |         boot
            cpufreqd | battery      default
                dbus | battery      default
                hald | battery      default
            hostname |         boot
             keymaps |         boot
               local | battery      default nonetwork
          localmount |         boot
             modules |         boot
              net.lo |         boot
            netmount | battery      default
           rmnologin |         boot
           syslog-ng | battery      default
             urandom |         boot
          vixie-cron | battery      default


Today is the first time I'm hearing about fdi. I never did any configurations myself, but I post the content of /etc/hal/fdi/policy/10-ntfs3g.fdi (the only file in /etc/hal/fdi):
Code:

File Edit Options Buffers Tools SGML Help
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
        <device>
                <match key="volume.fstype" string="ntfs">
                <merge key="volume.fstype" type="string">ntfs-3g</merge>
                </match>
        </device>
</deviceinfo>

_________________
“Man cannot live by bread alone; he must have peanut butter.”
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Jan 04, 2010 3:59 pm    Post subject: Reply with quote

Ok, can you post this :

Code:

# cd /usr/src/linux
# cat .config | grep -i evdev


If you have what it takes, then you should read this thread : https://forums.gentoo.org/viewtopic-t-722498.html
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Mon Jan 04, 2010 4:10 pm    Post subject: Reply with quote

Make sure hal is running as you start fluxbox,
read hal/evdev thread, comment out input sections of
xorg.conf and references to them.

The best joke about is that xorg-server 1.8 will be using udev instead of hal,
so you're bit late with the learning.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Jan 04, 2010 4:16 pm    Post subject: Reply with quote

In fact, and I'm gonna need to write an another post-it on the forum :P
Back to top
View user's profile Send private message
AstroFloyd
n00b
n00b


Joined: 18 Oct 2011
Posts: 33

PostPosted: Tue Oct 18, 2011 4:06 pm    Post subject: . Reply with quote

The same happened to me a while ago, then disappeared, and now returned after I recompiled my system as part of a gcc-upgrade: pressing Alt-F4 from X/KDE did not only kill the current window, but also switched from X to text console #4, as if I had pressed Ctrl-Alt-F4. Restarting X fixed this in my case.
Back to top
View user's profile Send private message
ahven
n00b
n00b


Joined: 14 Aug 2004
Posts: 24
Location: Rumia, Poland

PostPosted: Sat Jun 02, 2012 8:56 pm    Post subject: Re: . Reply with quote

AstroFloyd wrote:
The same happened to me a while ago, then disappeared, and now returned after I recompiled my system as part of a gcc-upgrade: pressing Alt-F4 from X/KDE did not only kill the current window, but also switched from X to text console #4, as if I had pressed Ctrl-Alt-F4. Restarting X fixed this in my case.

I'm getting the same problem from time to time since a major update (almost 600 packages) in December 2011. Pressing the Windows key or any of the function keys Alt+F1 to Alt+F12 except Alt+F7 do what they are assigned to in X, but apart from that they also switch from X to the consoles. I'm also using KDE. Restarting X helps, but it's annoying to restart X after every boot, just in case.
My guess is that there's some problem with the order of starting the services on boot. Among the upgraded packages there were xorg-server 1.10.4, KDE 4.7.3, openrc 0.9.4, consolekit 0.4.5, dbus 1.4.16. I suspect one of them is to blame.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Sun Jun 03, 2012 3:12 am    Post subject: Reply with quote

@ahven: honestly, at this date most likely reasons for this problem are your own settings.
Also, most of this thread refers to things, that aren't used anymore - look at one of my previous posts here.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum