[Bug 520546] Re: Alt-f2 switches to virtual terminal 2

Iain Lane iain at orangesquash.org.uk
Wed Apr 4 17:23:05 UTC 2018


On Wed, Apr 04, 2018 at 04:25:17PM -0000, Juha Sahakangas wrote:
> This bug is still happening and it absolutely certainly does not have
> anything to do with mechanical issues.
> 
> Andersk already identified the exact cause in comment #31 also - and
> it's absolutely trivial to verify that the offending "setupcon --force
> --save" command is still in the "keyboard-configuration.postinst" of the
> latest 1.178ubuntu1 version of console-setup package.

That line isn't executed in the normal case. There's some weird
formatting going on, but:

    if [ "$DISPLAY" ] && which setxkbmap >/dev/null; then
        setxkbmap -option '' -model "$model" "$layout" "$variant" "$options" || true
        # setting the font corrupts X
        # setting up the keyboard breaks wayland
        if type setupcon >/dev/null 2>&1; then
            setupcon --save-only
            cat >&2 <<EOF
Your console font configuration will be updated the next time your system
boots. If you want to update it now, run 'setupcon' from a virtual console.
EOF
        fi    else
        case "`uname`" in
            GNU)
                [ ! -f /var/run/hurd-console.pid ] || kill `cat /var/run/hurd-console.pid`
                ;;
            *)
                if type setupcon >/dev/null 2>&1; then
                    setupcon --force --save
                fi
                ;;
        esac
    fi

see the "fi    else" - the first branch is taken if $DISPLAY is set and
sexkbmap and setupcon exists.

Is $DISPLAY not set for you when this runs?

You can add `set -x' to the top of
/var/lib/dpkg/info/keyboard-configuration.postinst and run something
like `sudo DEBIAN_FRONTEND=noninteractive dpkg-reconfigure
keyboard-configuration' to verify what happens when
keyboard-configuration is configured by dpkg.

I think we should consider maybe removing that case too, but I'd like to
know if that is the actual cause of your problem please.

 subscribe laney

Cheers,

-- 
Iain Lane                                  [ iain at orangesquash.org.uk ]
Debian Developer                                   [ laney at debian.org ]
Ubuntu Developer                                   [ laney at ubuntu.com ]

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to console-setup in Ubuntu.
https://bugs.launchpad.net/bugs/520546

Title:
  Alt-f2 switches to virtual terminal 2

Status in console-cyrillic package in Ubuntu:
  Invalid
Status in console-setup package in Ubuntu:
  Invalid

Bug description:
  I'm running Ubuntu Lucid development branch.

  Pressing alt-f2 switches the screen to the second virtual terminal.
  Alt-f3 does the same to the third and so on. I expected alt-f2 to open
  the run dialog.

  I'm pretty sure that my keyboard is not malfunctioning as I can use
  all my applications normally. (Pressing O and Ctrl-O do not have the
  same effect.)

  I'm not sure which package I should file this bug against. I'll
  happily do an apport-collect once I know.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/console-cyrillic/+bug/520546/+subscriptions



More information about the foundations-bugs mailing list