[solved]Gentoo Bash Prompt not working in X

Hi
I'm using this .bashrc from AUR:
http://aur.archlinux.org/packages.php?ID=18418 
it is said to be the standard bashrc from gentoo.
It works with xterm, but I now installed urxvt (256 color) and it doesn't work any more, my prompt ist not colored any more.
I'm not familiar with bash scripting, perhaps someone could have a look.
The Problem ist not my .Xdefaults, I tried with an empty one. I also did "source .bashrc".
Last edited by lustikus (2010-01-11 12:24:28)

thanks for testing it.
This is my .bashrc. I did not change anything:
# /etc/bash/bashrc
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
# Bash won't get SIGWINCH if another process is in the foreground.
# Enable checkwinsize so that bash will check the terminal size when
# it regains control. #65623
# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
shopt -s checkwinsize
# Enable history appending instead of overwriting. #139609
shopt -s histappend
# Change the window title of X terminals
case ${TERM} in
xterm*|rxvt*|Eterm|aterm|kterm|gnome*|interix)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
screen)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
esac
use_color=false
# Set colorful PS1 only on colorful terminals.
# dircolors --print-database uses its own built-in database
# instead of using /etc/DIR_COLORS. Try to use the external file
# first to take advantage of user additions. Use internal bash
# globbing instead of external grep binary.
safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM
match_lhs=""
[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
[[ -z ${match_lhs} ]] \
&& type -P dircolors >/dev/null \
&& match_lhs=$(dircolors --print-database)
[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true
if ${use_color} ; then
# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
if type -P dircolors >/dev/null ; then
if [[ -f ~/.dir_colors ]] ; then
eval $(dircolors -b ~/.dir_colors)
elif [[ -f /etc/DIR_COLORS ]] ; then
eval $(dircolors -b /etc/DIR_COLORS)
fi
fi
if [[ ${EUID} == 0 ]] ; then
PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
else
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
fi
alias ls='ls --color=auto'
alias grep='grep --colour=auto'
else
if [[ ${EUID} == 0 ]] ; then
# show root@ when we don't have colors
PS1='\u@\h \W \$ '
else
PS1='\u@\h \w \$ '
fi
fi
# Try to keep environment pollution down, EPA loves us.
unset use_color safe_term match_lhs
I also made a screenshot with xterm and urxvt in comparison:

Similar Messages

  • Bash commands not working after upgrade to Lion

    After upgrade, many BASH commands not working. For example, such a fundamental thing as "ls". 
    iMac20:bin a$ ls
    Launch of "ls" failed: the PowerPC architecture is no longer supported.
    What does it have to do with PowerPC? My computer is 2.66 GHz Inter Core Duo

    Linc,
    iMac20:~ a$ which ls
    /sw/bin/ls
    Also, I managed to look (using tcsh's ls-F command) into the contents of /usr/. Here's what I see there:
    [iMac20:/bin] a% ls-F
    [*          csh*        echo*       ksh*        mkdir*      rcp*        stty*       wait4path*
    bash*       date*       ed*         launchctl*  mv*         rm*         sync*       zsh*
    cat*        dd*         expr*       link*       pax*        rmdir*      tcsh*      
    chmod*      df*         hostname*   ln*         ps*         sh*         test*      
    cp*         domainname* kill*       ls*         pwd*        sleep*      unlink*    

  • [SOLVED] Xorg and keyboard not working after upgrade.

    Hi guys,
    after a `# pacman -Syyu` I got Xorg not starting and keyboard not working: I am unable to do anything.
    I'm posting here pacman's log that I got by booting an Ubuntu Live CD: https://gist.github.com/anonymous/7517806
    Any hint?
    How do you recover a system once it's gone like this? Many thanks in advance.
    J
    Last edited by ifsixwasnine (2013-12-23 13:58:16)

    WonderWoofy wrote:
    I wouldn't necessarily call this [SOLVED].  At best I would probably mention that you found a workaround.  The addition of '(downgrade)' likely makes it fine, but just FYI for future threads.  There are two reasons for this.  One, others who find this thread are likely to dig into it thinking there is a real solution, and two, if you mark it as [Solved] it might generate less attention, lessening the chances of you actually being helped to a real solution.
    Just my 1.46¢
    You're right, problem wasn't actually solved. In fact, yesterday I upgraded the whole system again and the same problem showed up, but I got it fixed.
    Same scenario: after a boot (shorter than usual), what I had was a tty, but I noticed something that I hadn't noticed the last time: the prompt said "Arch Linux 3.11.[?]".
    The kernel version was supposed to be 3.12.[?] so I started investigating and after several attempts, this is how I got the system working again:
    1. Chrooted into the system
    2. Wiped /boot
    3. Re-installed grub
    4. Re-installed linux kernel
    5. Re-created grub.cfg
    6. ???
    7. Profit
    I'm pretty sure that what originated the problem wasn't a "kernel issue" as I pointed out in my previous post, but it was an incorrect installation of grub: in fact, the grub prompt never showed up before yesterday, the system used to boot straight, ignoring the 5 seconds timeout.

  • [Solved] Change bash prompt listing in terminal

    Hi,
    I've always used c-shell for ease in writing shell scripts. I'm interested in moving to bash and just using c-shell for scripting.
    In a .cshrc I can do something like this:
    if [ -o /bin/su ]; then
    set prompt="%{\e]2\;%t - %m:%/^g\e]1\;%m^g\r%}%B:%m%b# "
    else
    set prompt="%{\e]2\;%t - %m:%/^g\e]1\;%m^g\r%}%B:%m%b$ "
    fi
    I edited the if statement for what an if statement should look like in bash. This, however, doesn't work. I'm assuming the word "prompt" is wrong. How do I get this working in bash?
    EDIT: SEEMS LIKE THIS DID IT!
    PS1="\u@\h:\w#
    Last edited by playdafunkimuzic (2009-08-27 18:29:51)

    export PS1="whatever" is the way to set the prompt in bash.  not sure bout that -o are you checking for root? if so, [ $(id -u) -iq 0 ] returns true for root.

  • [SOLVED] Internal Speaker (pcsp) not working

    UPDATE: solved muting all Analog Loopback channels in alsamixer
    Hi everybody,
    i'm tuning the lucky arch installation on a DELL Studio XPS 13. No troubles in video card configuration, neither in wireless drivers, but i'm getting big problems with audio playback. I mean every kind of audio playback.
    I firstly read out the docs and topics around here but couldn't find a solution. Alsaconf says ok, alsamixer channels activated and configuration stored, but audio playing software (kde sounds, juk, amarok, vlc,  flashplugin) is not producing any sound. As these softwares are not complaining about audio matters, and the multimedia module in Kde Control is describing  this only as not working, i suppose the cause must be pcsp (which i disabled rc.conf).
    Some more info:
    bash-3.2# lsmod | grep snd
    snd_hda_codec_nvhdmi 2740 1
    snd_hda_codec_idt 55732 1
    snd_seq_oss 29888 0
    snd_seq_midi_event 5972 1 snd_seq_oss
    snd_seq 48176 4 snd_seq_oss,snd_seq_midi_event
    snd_seq_device 6080 2 snd_seq_oss,snd_seq
    snd_hda_intel 25384 2
    snd_hda_codec 60340 3 snd_hda_codec_nvhdmi,snd_hda_codec_idt,snd_hda_intel
    snd_hwdep 6904 1 snd_hda_codec
    snd_pcm_oss 38112 0
    snd_pcm 67992 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
    snd_timer 19260 2 snd_seq,snd_pcm
    snd_page_alloc 8092 2 snd_hda_intel,snd_pcm
    snd_mixer_oss 14388 1 snd_pcm_oss
    snd 51460 15 snd_hda_codec_idt,snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
    soundcore 6080 1 snd
    bash-3.2# cat /etc/modprobe.conf
    # /etc/modprobe.conf (for v2.6 kernels)
    options snd-pcsp index=2
    bash-3.2# cat /etc/modprobe.conf
    # /etc/modprobe.conf (for v2.6 kernels)
    options snd-pcsp index=2
    Any help is really appreciated, thank you
    Miche
    Last edited by Miche (2009-05-03 09:48:53)

    mcover wrote:
    snd-pcsp and pcspkr both claim the same hardware and are both responsible for making your machine "beep" - i disabled both of them. you don't need them for your audio-playback. looking for issues of your sound-output by suspecting snd-pcsp or pcspkr is a dead end.
    getting sound can sometimes be an adventure, i had that problem before. but often it just turns out to be some well hidden mute switch in alsamixer or some volume settings. it might be a problem with kde4's sound server. i don't use kde4 on a regular basis, so i can't help too much with that (back when i used kde3 i had to configure aRts but kde4 discontinued aRts in favor of phonon).
    absolutly needed quotation as in the end it has been discovered that in-activating Analog Loopback channels in alsamixer solved the problem
    i'm not sure this was the unique step in order to get alsa working (i read and followed suggentions from many many forums and wikis) but finally i found a post where the problem for a sound blaster owner was solved disabling the iec958 channel. That was the input for a deeper research in alsamixer configuration.
    Thank you very much. keep enjoyng archlinux.
    Miche

  • [SOLVED] DPMS screen off not working with xorg 1.16.0, gnome 3

    After the update of xorg into 1.16.0-2, screen is not turned off by DPMS in GNOME.
    I also tried an manual command:
    $ xset dpms force off
    but it's not working.
    In other WM, this command is working.
    With xorg 1.15.2 and gnome 3, there is not this problem.
    When I entered the command, the screen turned off for a couple of seconds and turned back on.
    Last edited by esrevinu (2014-07-22 23:35:07)

    Updating xf86-video-intel to 2.99.912-4 solved the problem.
    Thanks.

  • Win 2003 Sevver Command Prompt not working

    Hi,
    It seems somehow the command prompt are not working on my server and hence one of my software installation is failing on the server.
    it seems the CLI commands work fine when the Command prompt is executed directly from the /system32 dir. But when we use it from Start>run>cmd, the commands don't respond.
    For Example:
    C:\>ping
    'ping' is not recognized as an internal or external command,
    operable program or batch file.
    C:\>nslookup
    'nslookup' is not recognized as an internal or external command,
    operable program or batch file.
    And when I execute it from the /system32 :
    C:\WINDOWS\system32>ping
    Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
                [-r count] [-s count] [[-j host-list] | [-k host-list]]
                [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name
    Options:
        -t             Ping the specified host until stopped.
                       To see statistics and continue - type Control-Break;
                       To stop - type Control-C.
        -a             Resolve addresses to hostnames.
        -n count       Number of echo requests to send.
        -l size        Send buffer size.
        -f             Set Don't Fragment flag in packet (IPv4-only).
        -i TTL         Time To Live.
        -v TOS         Type Of Service (IPv4-only).
        -r count       Record route for count hops (IPv4-only).
        -s count       Timestamp for count hops (IPv4-only).
        -j host-list   Loose source route along host-list (IPv4-only).
        -k host-list   Strict source route along host-list (IPv4-only).
        -w timeout     Timeout in milliseconds to wait for each reply.
        -R             Trace round-trip path (IPv6-only).
        -S srcaddr     Source address to use (IPv6-only).
        -4             Force using IPv4.
        -6             Force using IPv6.
    C:\WINDOWS\system32>nslookup
    Default Server:  dns-blr2.cisco.com
    Address:  72.163.128.140
    Please check and suggest!

    Hi Aryanadonis  ,
    Thanks for posting here
    According what you mentioned, I thought system can’t located command programs path when you perform this command .
    Seems that you can perform these command with assign path, what I thought is this issue occurred because wrong environment variable setting.
    I noticed that you have posted the Environment Variable result here, I checked and highlight wrong values that could cause this issue. please correct it and try perform
    command again.
    C:\WINDOWS;
    C:\WINDOWS\system32;
    C:\WINDOWS\system32\\wbem;
    C:\PROGRA~1\CSCOpx\objects\smarts\lib;
    C:\PROGRA~1\CSCOpx\objects\smarts\bin;
    C:\PROGRA~1\CSCOpx\campus\bin;
    C:\PROGRA~1\CSCOpx\MDC\tomcat\bin;
    C:\PROGRA~1\CSCOpx\MDC\Apache;
    C:\PROGRA~1\CSCOpx\MDC\Apache\bin;
    C:\PROGRA~1\CSCOpx\MDC\jre\bin;
    C:\PROGRA~1\CSCOpx\MDC\bin;
    C:\PROGRA~1\CSCOpx\lib\jre\bin\server;
    C:\PROGRA~1\CSCOpx\objects\db\win32;
    C:\PROGRA~1\CSCOpx\bin;
    C:\WINDOWS\system32\\wbems\smarts\binPROGRA~1\CSCOpx\MDC\ApacheOGRA~1\CSCOpx\lib\jre\bin\serverCOpx\lib\jrebin\serveremRoot%\System32\Wbem;
    C:\Other Programs\net snmp\bin
    This article below introduce how to modify environment variables in windows XP , but you may also reference to it and modify environment variable on you windows 2003:
    How To Manage Environment Variables in Windows XP
    http://support.microsoft.com/kb/310519
    Thanks.
    Tiger Li
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • [solved] NFS client will not work correctly

    I have all my $HOME on an NFS Server. So long I used suse and debian, now I want switch to arch but the nfs-client ist not working correctly:
    I start "portmap nfslock nfsd netfs" over rc.conf. When I do a "rpcinfo -p <ip-arch-system>" I got the following
    stefan:/home/stefan # rpcinfo -p 192.168.123.3
       Program Vers Proto   Port
        100000    2   tcp    111  portmapper
        100000    2   udp    111  portmapper
        100021    1   udp  32768  nlockmgr
        100021    3   udp  32768  nlockmgr
        100021    4   udp  32768  nlockmgr
        100003    2   udp   2049  nfs
        100003    3   udp   2049  nfs
        100003    4   udp   2049  nfs
        100021    1   tcp  48988  nlockmgr
        100021    3   tcp  48988  nlockmgr
        100021    4   tcp  48988  nlockmgr
        100003    2   tcp   2049  nfs
        100003    3   tcp   2049  nfs
        100003    4   tcp   2049  nfs
        100005    3   udp    891  mountd
        100005    3   tcp    894  mountd
    As you see "status" is missing, so the statd is not running. It sould look like the result on my suse box:
    stefan:/home/stefan # rpcinfo -p 192.168.123.2
       Program Vers Proto   Port
        100000    2   tcp    111  portmapper
        100000    2   udp    111  portmapper
        100024    1   udp  32768  status
        100021    1   udp  32768  nlockmgr
        100021    3   udp  32768  nlockmgr
        100021    4   udp  32768  nlockmgr
        100024    1   tcp  35804  status
        100021    1   tcp  35804  nlockmgr
        100021    3   tcp  35804  nlockmgr
        100021    4   tcp  35804  nlockmgr
    There is the "status" line and so the statd is running.
    How can I fix that problem, so that statd ist running on my arch box too?
    Last edited by stka (2007-06-10 15:59:48)

    The Problem ist solved.
    I use ldap for authentication. During the setup of the ldapclient I copied the nsswitch.ldap to nsswitch.conf. But the line for "hosts:" was:
    hosts:          dns ldap
    but in my dns ist no localhost entry. After I changed this line to:
    hosts:          files dns ldap
    everything was ok. The statd is now running and I can start to migrate to archlinux ;-)

  • Cascading prompt not working in infoview from today.

    Hi Gurus,
    All my reports have a common cascading prompt which was working fine till yesterday in infoview.
    now, its woking fine in thick client (Desk-i) but not working in infoview after exporting.
    Its give only single prompt instead of cascading.
    For eg: lets assume there is a 2 level cascading for quater and year
    My prompt will be "Select Quater" then cascading prompt should ask for "Select Year".
    In my case now, Desk-I prompting for "Select year" after"Select quater" where as Infoview is giving only "Select quater" prompt and result set as Q 1
                                Q 2
                                Q 3
                                Q 4
    there was no changes in universe since a week.
    Please help me, i'm lost here.
    Let me know if I have to write to BO support .
    Thanks in advance.
    Shesha

    Update..
    Its working.
    I refreshed the LOV's and exported universe.
    It started working.
    Thanks
    Shesha

  • Navigation from union request - navigation target "is prompted" not working

    Hi friends..
    I've created a union request from 5 request.
    I'm trying to navigate to other request using value interaction. The column is "Is Prompted" on the other request.
    But thats not working. I'm seeing all the record instead of the filtered record.
    Please give me some solution.
    Thanks

    Try this for starters :
    http://gerardnico.com/wiki/dat/obiee/presentation_service/obiee_url_passing_filters
    I'll dig out some more posts we answered recently which helped a user out.
    Here you go :
    Re: Data level security
    Edited by: Alastair_PeakIndicators on 25-Mar-2010 08:21

  • [Solved] Wacom pen buttons not working

    Hi, this is probably simple to fix, but I don't understand everything well enough to get it set up.  I have a Fujitsu T5010 with internal Wacom tablet.  The Wacom drivers are installed.  I can use the pen to move the pointer, and click.  However, the buttons on the side of the pen do not work.  Also, the eraser end of the pen seems to register as an ordinary single click, rather than a separate input.
    Here are some relevant outputs:
    $ xsetwacom get "Serial Wacom Tablet FUJ02e5 stylus" all
    Option "Area" "0 0 28808 18080"
    'Button' requires exactly 1 value(s).
    Option "ToolDebugLevel" "0"
    Option "TabletDebugLevel" "0"
    Option "Suppress" "2"
    Option "RawSample" "4"
    Option "PressureCurve" "0 0 100 100"
    Option "Mode" "Absolute"
    Option "TabletPCButton" "on"
    Option "Touch" "off"
    Option "Gesture" "off"
    Option "ZoomDistance" "0"
    Option "ScrollDistance" "0"
    Option "TapTime" "250"
    Property 'Wacom Proximity Threshold' does not exist on device.
    Option "Rotate" "none"
    Property 'Wacom Wheel Buttons' does not exist on device.
    Property 'Wacom Wheel Buttons' does not exist on device.
    Property 'Wacom Wheel Buttons' does not exist on device.
    Property 'Wacom Wheel Buttons' does not exist on device.
    Property 'Wacom Wheel Buttons' does not exist on device.
    Property 'Wacom Wheel Buttons' does not exist on device.
    Property 'Wacom Strip Buttons' does not exist on device.
    Property 'Wacom Strip Buttons' does not exist on device.
    Property 'Wacom Strip Buttons' does not exist on device.
    Property 'Wacom Strip Buttons' does not exist on device.
    Option "Threshold" "27"
    Option "ToolType" "325"
    Option "ToolSerial" "0"
    Option "ToolID" "0"
    Option "ToolSerialPrevious" "0"
    Option "BindToSerial" "0"
    Option "TabletID" "144"
    and
    $ xsetwacom get "Serial Wacom Tablet FUJ02e5 eraser" all
    Option "Area" "0 0 28808 18080"
    'Button' requires exactly 1 value(s).
    Option "ToolDebugLevel" "0"
    Option "TabletDebugLevel" "0"
    Option "Suppress" "2"
    Option "RawSample" "4"
    Option "PressureCurve" "0 0 100 100"
    Option "Mode" "Absolute"
    Property 'Wacom Hover Click' does not exist on device.
    Option "Touch" "off"
    Option "Gesture" "off"
    Option "ZoomDistance" "0"
    Option "ScrollDistance" "0"
    Option "TapTime" "250"
    Property 'Wacom Proximity Threshold' does not exist on device.
    Option "Rotate" "none"
    Property 'Wacom Wheel Buttons' does not exist on device.
    Property 'Wacom Wheel Buttons' does not exist on device.
    Property 'Wacom Wheel Buttons' does not exist on device.
    Property 'Wacom Wheel Buttons' does not exist on device.
    Property 'Wacom Wheel Buttons' does not exist on device.
    Property 'Wacom Wheel Buttons' does not exist on device.
    Property 'Wacom Strip Buttons' does not exist on device.
    Property 'Wacom Strip Buttons' does not exist on device.
    Property 'Wacom Strip Buttons' does not exist on device.
    Property 'Wacom Strip Buttons' does not exist on device.
    Option "Threshold" "27"
    Option "ToolType" "379"
    Option "ToolSerial" "0"
    Option "ToolID" "0"
    Option "ToolSerialPrevious" "0"
    Option "BindToSerial" "0"
    Option "TabletID" "144"
    Also, I have no /etc/X11/xorg.conf, but I do have a /etc/X11/xorg.conf.d/50-wacom.conf, which looks like
    $ cat /etc/X11/xorg.conf.d/50-wacom.conf
    Section "InputClass"
    Identifier "Wacom class"
    MatchProduct "Wacom|WACOM|Hanwang|PTK-540WL"
    MatchDevicePath "/dev/input/event*"
    Driver "wacom"
    EndSection
    Section "InputClass"
    Identifier "Wacom serial class"
    MatchProduct "Serial Wacom Tablet"
    Driver "wacom"
    EndSection
    Section "InputClass"
    Identifier "Wacom serial class identifiers"
    MatchProduct "WACf|FUJ02e5|FUJ02e7|FUJ02e9"
    Driver "wacom"
    EndSection
    # Waltop tablets
    Section "InputClass"
    Identifier "Waltop class"
    MatchProduct "WALTOP"
    MatchIsTablet "on"
    MatchDevicePath "/dev/input/event*"
    Driver "wacom"
    EndSection
    # N-Trig Duosense Electromagnetic Digitizer
    Section "InputClass"
    Identifier "Wacom N-Trig class"
    MatchProduct "HID 1b96:0001|N-Trig Pen"
    MatchDevicePath "/dev/input/event*"
    Driver "wacom"
    Option "Button2" "3"
    EndSection
    I am running 64-bit Arch, installed only a month ago (so completely systemd), and fully up to date as of last night.
    Last edited by khelar (2012-12-13 19:03:54)

    Never mind, I solved my own issue.  In my /etc/X11/xorg.conf.d/50-wacom.conf, I modified the following section
    Section "InputClass"
    Identifier "Wacom serial class identifiers"
    MatchProduct "WACf|FUJ02e5|FUJ02e7|FUJ02e9"
    Driver "wacom"
    EndSection
    to read
    Section "InputClass"
    Identifier "Wacom serial class identifiers"
    MatchProduct "WACf|FUJ02e5|FUJ02e7|FUJ02e9"
    Driver "wacom"
    Option "Button1" "1"
    Option "Button2" "2"
    Option "Button3" "3"
    EndSection

  • [SOLVED] ASUS Screen Brightness Not Working

    I have been trying for a few hours to get my screen brightness to work properly. I'm on an ASUS Zenbook Prime UX31A with kernel 3.9.6-1. I'm using efibootmgr to boot.
    According to the wiki page and numerous posts, I need to use the acpi_osi="!Windows 2012" boot parameter. When I set it using efibootmgr, the keyboard backlight keys work (Fn+F[34]), but the screen brightness keys (Fn+F[56]) do not work. I have tried the following in efibootmgr:
    # efibootmgr -c -w -d /dev/sda -p 1 -L "Arch Linux" -l '\EFI\arch\vmlinuz-arch.efi' -u initrd=EFI/arch/initramfs-arch.img root=UUID=d0b32080-84f0-4c6b-933b-f62b880afc09 ro rootfstype=ext4 efi_no_storage_paranoia elevator=noop acpi_osi=Linux add_efi_memmap
    # efibootmgr -c -w -d /dev/sda -p 1 -L "Arch Linux" -l '\EFI\arch\vmlinuz-arch.efi' -u initrd=EFI/arch/initramfs-arch.img root=UUID=d0b32080-84f0-4c6b-933b-f62b880afc09 ro rootfstype=ext4 efi_no_storage_paranoia elevator=noop acpi_osi=intel add_efi_memmap
    # efibootmgr -c -w -d /dev/sda -p 1 -L "Arch Linux" -l '\EFI\arch\vmlinuz-arch.efi' -u initrd=EFI/arch/initramfs-arch.img root=UUID=d0b32080-84f0-4c6b-933b-f62b880afc09 ro rootfstype=ext4 efi_no_storage_paranoia elevator=noop acpi_osi= add_efi_memmap
    and a few others. The particularly peculiar thing is when I use a UEFI shell to boot with my script:
    echo -on
    \EFI\arch\vmlinuz-arch.efi root=UUID=d0b32080-84f0-4c6b-933b-f62b880afc09 ro rootfstype=ext4 add_efi_memmap efi_no_storage_paranoia initrd=EFI/arch/initramfs-arch.img elevator=noop acpi_osi="!Windows 2012"
    it works fine (both keyboard backlight and screen brightness).
    What am I doing wrong? My hunch is that I'm doing something wrong with the formatting of acpi_osi="!Windows 2012" but I'm pretty sure I've tried every combination of different quotes and escaping different things. It's also worth nothing that the "!" gets interpreted by bash in some of these permutations making efibootmgr not actually run.
    Last edited by tobit (2013-06-30 02:37:30)

    WonderWoofy wrote:
    Because you are entering it in a shell, you need to escape some of the things in the acpi_osi="!Windows 2012" string.  So for example, the double quotes are intended to be entered exactly as is in the resulting efibootmgr entry, so these should be esacped since they would otherwise have a special meaning in the command line.  The same is true for the exclamation point.  So I think you would have to do:
    efibootmgr -c -w -d /dev/sda -p 1 -L "Arch Linux" -l '\EFI\arch\vmlinuz-arch.efi' -u "initrd=/EFI/arch/initramfs-arch.img root=UUID=d0b32080-84f0-4c6b-933b-f62b880afc09 ro rootfstype=ext4 efi_no_storage_paranoia elevator=noop acpi_osi=\"\!Windows 2012\" add_efi_memmap"
    BTW, this is just a copy/paste of one of the entries above (slightly fixed).  I added a '/' to your initrd entry, as it is supposed to be an absolute path, not a relative one.
    Edit: I too started out with a direct efibootmgr entry when getting to know UEFI.  But I think that a better solution is to use a boot manager.  I like gummiboot, but I also keep rEFInd set up as well.  By doing this, if you ever want to chane something on your kernel command line, you can just edit the config before reboot.  But I think that were it is really useful is if you need to modify the kernel command line before you boot, as it is not possible with a direct efibootmgr entry.  If you want to make it seem seamless, just set the timeout to zero in efibootmgr, and then if you want to get to the menu, you just hold the spacebar while booting. 
    The reason I wanted to use a direct efibootmgr entry was because I thought it would be faster.  But because gummiboot and systemd will actually give you the time it takes to boot which includes the time in the firmware (POST) as well as the time it takes to get through the boot manager, I have actually found that my system takes a whole 14ms from the end of POST to starting to load the kernel.
    Edit2: BTW, I also quoted the entire srting of arguments on the kernel command line, which it need in order to be fed to the '-u' option as a single string.
    I'm afraid that still doesn't work. I've tried similar things and tried that specifically.  In case you're wondering, the command you listed gives me the following output:
    $ sudo efibootmgr -v
    BootCurrent: 0000
    Timeout: 2 seconds
    BootOrder: 0000
    Boot0000* Arch Linux HD(1,800,96000,bee2185e-de97-4dc0-9614-830639991bc3)File(\EFI\arch\vmlinuz-arch.efi)i.n.i.t.r.d.=./.E.F.I./.a.r.c.h./.i.n.i.t.r.a.m.f.s.-.a.r.c.h...i.m.g. .r.o.o.t.=.U.U.I.D.=.d.0.b.3.2.0.8.0.-.8.4.f.0.-.4.c.6.b.-.9.3.3.b.-.f.6.2.b.8.8.0.a.f.c.0.9. .r.o. .r.o.o.t.f.s.t.y.p.e.=.e.x.t.4. .e.f.i._.n.o._.s.t.o.r.a.g.e._.p.a.r.a.n.o.i.a. .e.l.e.v.a.t.o.r.=.n.o.o.p. .a.c.p.i._.o.s.i.=.".\.!.W.i.n.d.o.w.s. .2.0.1.2.". .a.d.d._.e.f.i._.m.e.m.m.a.p...
    I also tried putting the -u argument in single quotes so that I don't have to escape the double quotes or the !. That also didn't work. Thanks for your suggestions, I'd be happy to try more, I've tried a lot already to no avail :-(
    count0 wrote:On my Asus X201E, the screen brightness keys only work when I add "acpi_osi=" to my kernel parameters, with no arguments. You could try that.
    That's the third option I say that I tried in my original post.

  • [SOLVED] cat6500 vlan filtering not working

    Hello!
    I have cat 6500 with SUP32-GE-3B/MSFC2A/PFC3B, s3223-adventerprisek9-mz.122-33.SXJ6.bin,
    and WS-X6148-GE-TX module.
    And I have a couple of 3750G.
    On all of 3750G there is a broadcast filtering of VLAN 4000, and it's working:
    mac access-list extended badhosts
      permit any host ffff.ffff.ffff
    vlan access-map dropbad 10
      action drop
      match mac address badhosts
    vlan access-map dropbad 20
      action forward
    vlan filter dropbad vlan-list 4000
    Then i copy this config to 6500, and it's not working.  I configured two ports, one is switchport access vlan 4000 and other is switchport capture allowed vlan 4000, and i see on both ports same broadcast traffic. Filter is working, but packets are not dropping. I've tried to find something in manual, but found only about platform cwan acl software-switched, enabled it, nothing changed.
    cat6500# sh vlan filter
    VLAN Map dropbad:
            Configured on VLANs:  4000
                Active on VLANs:  4000

    i think i solve the problem: to make vlan filtering to work on 6500, i've added:
    # conf t
    (config)# int vlan 4000
    (config-if)# no shut
    (config-if)# mac packet-classify
    Now, how to mark this question answered?

  • Automated Prompts Not Working

    Whenever I call a number and it begins with a prompt such as "Press one for accounting, two for purchasing, etc." it doesnt work. If I press 2, I see it appear where the number was and I hear it, but nothiing happens. Has anyone ever heard of this or know a fix?

    Originally Posted by Ramon Lustrati
    Hello NG
    I did found the solution.
    I had a error in this description. The requirements set was "System
    Manufacturer" is equal to "Dell Inc." and this was not working.
    After i changed it to "System Manufacturer" conains "Dell Inc." the
    automated Imaging worked.
    But strange is, why didn't work it with "is equal to" ?
    Hi Ramon
    Well that I've also seen, and yes it's funny, but maby ZENworks reads a bit more of the line than what we se or something like that. But yep it works with our dell (and HP) if we use the contains instead of the equal to.

  • Bash command not working

    After an update from leopard to lion my bash command clear does not work.
    If I open terminal and type clear this happens...
    Last login: Wed Jul  4 19:07:27 on ttys000
    You have new mail.
    pancake:~ machinename$ clear
    Launch of "clear" failed: the PowerPC architecture is no longer supported.
    pancake:~ machinename$
    I have tried to copy a copy of the terminal app from another functioning machine running lion, but when it runns on the upgraded machine the result is the same.
    How can I fix this?

    Sorry I better correct some of the info.
    My bash command clear does not work.
    If I open terminal and type clear this happens...
    The machine was bought with Lion preinstalled and the Migration Assistant was use to transfer everything for a user from a Leopard machine.
    Last login: Wed Jul  4 19:07:27 on ttys000
    You have new mail.
    pancake:~ username$ clear
    Launch of "clear" failed: the PowerPC architecture is no longer supported.
    pancake:~ username$
    When attempting to delete the terminal program on the system it is prevented with the message:
    “Terminal” can’t be modified or deleted because it’s required by Mac OS X.
    I then copied a terminal program from another Lion machine but it shows the same message for the command Clear on this machine, but not the machine it was copied from.
    Any ideas is greatly appreciated...

Maybe you are looking for