Results 1 to 2 of 2

Thread: Start gdm under certain conditions

  1. #1
    Join Date
    Jun 2011
    Location
    Netherlands
    Beans
    175
    Distro
    Ubuntu 12.04 Precise Pangolin

    Start gdm under certain conditions

    Hi,

    I want to be able to boot into text-only mode, but only under certain circumstances, for example when I press a certain key.
    I initially thought to change the runlevel. Because Ubuntu works with upstart nowadays, it took me quite some time to figure out how to prevent gdm not to start on runlevel 3.
    I got that working, such that when I change
    Code:
           env DEFAULT_RUNLEVEL=2
    into
    Code:
           env DEFAULT_RUNLEVEL=3
    (in /etc/init/rc-sysinit.conf) the system will boot into text-only.

    Now I only need to be able to capture a key (i.e. reading the keystatus) while booting, such that gdm will not start when pressed a certain key. However, I don't know how and where to do that.

    Any suggestions? Thanks in advance!

    Regards
    Last edited by Chiel92; March 7th, 2012 at 10:20 PM.
    Vim - Comfortable text editing and coding
    vim-autoformat - a code-formatting plugin for vim supporting various languages - https://github.com/Chiel92/vim-autoformat
    Vimperator - Fast browsing using keyboard only

  2. #2
    Join Date
    Jun 2011
    Location
    Netherlands
    Beans
    175
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Start gdm under certain conditions

    bump
    Vim - Comfortable text editing and coding
    vim-autoformat - a code-formatting plugin for vim supporting various languages - https://github.com/Chiel92/vim-autoformat
    Vimperator - Fast browsing using keyboard only

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •