[Solved] Arch noob on Thinkpad: installing tpacpi-bat

Hello Arch community
     I'm enjoying Arch on my thinkpad t420, but it's about time I properly configured my laptop's power management. I plan to run tlp through systemd, which seems to be going fine. What is not going as planned is my installation of the tpacpi-bat script which makes battery thresholds configurable. I discovered that the project is now hosted on github. So bear with me: i understand that on the AUR, you have to download the .tar.gz, extract it, run makepkg -s, which talks to the PKGBUILD, which you can then pacman -U, but, because i am a noob, i fear i've overlooked a few things. i git cloned the project, so i have it on my machine, but there's no PKGBUILD... only an install script written in perl. "okay, so no big deal..." i ran perl install.pl... and got the following output:
OUTPUT:
perl install.pl
sudo cp tpacpi-bat /usr/local/bin
git fetch
git reset HEAD --hard
HEAD is now at 342a3d2 Repository cleanup, added several methods and scripts from feedback
git clean -fd
git checkout v1.0.0
HEAD is now at 342a3d2... Repository cleanup, added several methods and scripts from feedback
make
make -C /lib/modules/3.7.9-1-ARCH/build M=/tmp/acpi_call modules
make: *** /lib/modules/3.7.9-1-ARCH/build: No such file or directory.  Stop.
make: *** [default] Error 2
error running 'make'
So, it looks like the script stopped itself when it found that /lib/modules/3.7.9-1-Arch/build does not exist... so the noob question is "why should it exist?"--- what am i doing wrong?
Last edited by garudabear (2013-02-25 06:21:28)

HI!
After extracting the .tar.gz, a folder with only a PKGBUILD was extracted. and then I got confused... what would I pass as an argument to makepkg? I saw in the comments that the project had moved to git (https://aur.archlinux.org/packages/tpacpi-bat/ ) which is why I cloned the file. After a little while, I thought maybe I forgot to install a dependancy... i discovered that i acpi_call-git is a dependancy, tried to install that, and received a similar "Error 2" Here's the output for that:
makepkg -si acpi_call.install
==> Determining latest git revision...
  -> Version found: 20130223
==> Making package: acpi_call-git 20130223-1 (Sat Feb 23 21:22:44 EST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
==> WARNING: Please make sure kernel headers are built/installed for the kernel acpi_call will be used with ::
==> WARNING: example #1: 'pacman -S linux-headers'
==> WARNING: example #2: 'pacman -S linux-lts-headers'
==> Git checkout:  Updating existing tree
Already up-to-date.
==> Git checkout:  Tree has been updated
==> Checkout completed
make -C /usr/lib/modules/3.7.9-1-ARCH/build M=/home/garudabear/Downloads/acpi_call-git/src/acpi_call-build modules
make: *** /usr/lib/modules/3.7.9-1-ARCH/build: No such file or directory.  Stop.
make: *** [default] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
i discovered this dependancy when i ran makepkg -si in the extracted tpacpi-bat contents from the .tar.gz on the AUR, but seeing that htis acpi-call file has no dependancies, i'm confused.

Similar Messages

  • [Solved] Boot process hangs for installed Arch and installation usb

    Hi. I've been using Arch Linux for around 6 months now and I'm in love with it. It is now my primary OS. However, I might have done something or performed some update, and I can no longer boot into Arch. The boot process hangs right before it should show the login screen (I'm using Gnome 3.6 with GDM). I see the following messages on the screen:
    Loading Linux core repo kernel ...
    Loading initial ramdisk ...
    /dev/sda3: recovering journal
    /dev/sda3: clean, 330610/1749664 files, 5585671/6996827 blocks
    And then it hangs right there. I have to hard-reboot after this.
    I then tried to boot using the Arch Linux Installation USB (archlinux-2012.12.01-dual.img), which also hangs at a particular point, before it should show me the prompt. I took a picture of the screen where it hangs: Screen Capture. This is an issue with just my laptop, because the USB boots just fine on another laptop I tried.
    I also have Windows 7 and Ubuntu 12.10 installed on my system, and I'm able to boot into both of them.
    I have 2 hard drives: /dev/sda is a 120GB SSD, and /dev/sdb is a 500GB hard disk. My partitions are as follows:
    sda1 - Windows 7 100MB System Reserved Partition (boot flag enabled)
    sda2 - Windows 7 OS
    sda3 - ArchLinux (boot flag enabled)
    sdb1 - Ubuntu 12.10 (boot flag enabled)
    sdb2 - Just data
    I ran bootinfoscript and below is the output:
    Boot Info Script 0.61 [1 April 2012]
    ============================= Boot Info Summary: ===============================
    => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and looks
    in partition 99 for .
    => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and looks
    in partition 99 for .
    sda1: __________________________________________________________________________
    File system: ntfs
    Boot sector type: Windows Vista/7: NTFS
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files: /bootmgr /Boot/BCD
    sda2: __________________________________________________________________________
    File system: ntfs
    Boot sector type: Windows Vista/7: NTFS
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System: Windows 7
    Boot files: /Windows/System32/winload.exe
    sda3: __________________________________________________________________________
    File system: ext4
    Boot sector type: -
    Boot sector info:
    Mounting failed: mount: /dev/sda3 already mounted or sda3 busy
    sdb1: __________________________________________________________________________
    File system: ext4
    Boot sector type: -
    Boot sector info:
    Operating System: Ubuntu 12.10
    Boot files: /boot/grub/grub.cfg /etc/fstab
    sdb2: __________________________________________________________________________
    File system: ntfs
    Boot sector type: Windows Vista/7: NTFS
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files:
    ============================ Drive/Partition Info: =============================
    Drive: sda _____________________________________________________________________
    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    Partition Boot Start Sector End Sector # of Sectors Id System
    /dev/sda1 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
    /dev/sda2 206,848 178,466,084 178,259,237 7 NTFS / exFAT / HPFS
    /dev/sda3 * 178,466,085 234,440,703 55,974,619 83 Linux
    Drive: sdb _____________________________________________________________________
    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    Partition Boot Start Sector End Sector # of Sectors Id System
    /dev/sdb1 * 63 20,948,759 20,948,697 83 Linux
    /dev/sdb2 20,964,824 976,771,071 955,806,248 7 NTFS / exFAT / HPFS
    "blkid" output: ________________________________________________________________
    Device UUID TYPE LABEL
    /dev/mmcblk0p1 6665-3162 vfat
    /dev/sda1 CA6A20CC6A20B75B ntfs System Reserved
    /dev/sda2 1EE242D5E242B137 ntfs
    /dev/sda3 65db0c59-9f04-46f1-975d-8a4c28132137 ext4
    /dev/sdb1 bb9818db-ce7c-43a4-8ad5-8d3702001aed ext4
    /dev/sdb2 3C2E3A4E2E3A0206 ntfs
    ================================ Mount points: =================================
    Device Mount_Point Type Options
    /dev/mmcblk0p1 /media/dhaval/6665-3162 vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
    /dev/sdb1 / ext4 (rw,errors=remount-ro)
    =========================== sdb1/boot/grub/grub.cfg: ===========================
    # DO NOT EDIT THIS FILE
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
    set have_grubenv=true
    load_env
    fi
    set default="0"
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    else
    menuentry_id_option=""
    fi
    export menuentry_id_option
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi
    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    function recordfail {
    set recordfail=1
    if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
    function load_video {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    fi
    if [ x$feature_default_font_path = xy ] ; then
    font=unicode
    else
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    font="/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    set locale_dir=$prefix/locale
    set lang=en_US
    insmod gettext
    fi
    terminal_output gfxterm
    if [ "${recordfail}" = 1 ]; then
    set timeout=-1
    else
    set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    if background_color 13,37,73; then
    clear
    fi
    ### END /etc/grub.d/05_debian_theme ###
    ### BEGIN /etc/grub.d/10_linux ###
    function gfxmode {
    set gfxpayload="${1}"
    if [ "${1}" = "keep" ]; then
    set vt_handoff=vt.handoff=7
    else
    set vt_handoff=
    fi
    if [ "${recordfail}" != 1 ]; then
    if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
    if [ ${match} = 0 ]; then
    set linux_gfx_mode=keep
    else
    set linux_gfx_mode=text
    fi
    else
    set linux_gfx_mode=text
    fi
    else
    set linux_gfx_mode=keep
    fi
    else
    set linux_gfx_mode=text
    fi
    export linux_gfx_mode
    if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
    menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    linux /boot/vmlinuz-3.5.0-21-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro quiet splash acpi_osi=Linux acpi_backlight=vendor $vt_handoff
    initrd /boot/initrd.img-3.5.0-21-generic
    submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    menuentry 'Ubuntu, with Linux 3.5.0-21-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-21-generic-advanced-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    echo 'Loading Linux 3.5.0-21-generic ...'
    linux /boot/vmlinuz-3.5.0-21-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro quiet splash acpi_osi=Linux acpi_backlight=vendor $vt_handoff
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.5.0-21-generic
    menuentry 'Ubuntu, with Linux 3.5.0-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-21-generic-recovery-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    echo 'Loading Linux 3.5.0-21-generic ...'
    linux /boot/vmlinuz-3.5.0-21-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro recovery nomodeset
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.5.0-21-generic
    menuentry 'Ubuntu, with Linux 3.2.0-29-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-29-generic-advanced-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    echo 'Loading Linux 3.2.0-29-generic ...'
    linux /boot/vmlinuz-3.2.0-29-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro quiet splash acpi_osi=Linux acpi_backlight=vendor $vt_handoff
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.2.0-29-generic
    menuentry 'Ubuntu, with Linux 3.2.0-29-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-29-generic-recovery-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    echo 'Loading Linux 3.2.0-29-generic ...'
    linux /boot/vmlinuz-3.2.0-29-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro recovery nomodeset
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.2.0-29-generic
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    linux16 /boot/memtest86+.bin
    menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    ### END /etc/grub.d/20_memtest86+ ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-CA6A20CC6A20B75B' {
    insmod part_msdos
    insmod ntfs
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 CA6A20CC6A20B75B
    else
    search --no-floppy --fs-uuid --set=root CA6A20CC6A20B75B
    fi
    chainloader +1
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/30_uefi-firmware ###
    ### END /etc/grub.d/30_uefi-firmware ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    =============================== sdb1/etc/fstab: ================================
    # /etc/fstab: static file system information.
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc nodev,noexec,nosuid 0 0
    # / was on /dev/sdb1 during installation
    UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed / ext4 errors=remount-ro 0 1
    =================== sdb1: Location of files loaded by Grub: ====================
    GiB - GB File Fragment(s)
    4.564525127 = 4.901121536 boot/grub/grub.cfg 1
    5.130507946 = 5.508840960 boot/initrd.img-3.2.0-29-generic 2
    5.851592541 = 6.283099648 boot/initrd.img-3.5.0-21-generic 2
    6.317649364 = 6.783524352 boot/vmlinuz-3.2.0-29-generic 1
    4.965751171 = 5.331934720 boot/vmlinuz-3.5.0-21-generic 2
    5.851592541 = 6.283099648 initrd.img 2
    5.851592541 = 6.283099648 initrd.img.old 2
    4.965751171 = 5.331934720 vmlinuz 2
    4.965751171 = 5.331934720 vmlinuz.old 2
    I tried adding nomodeset and acpi=off to the boot parameters, but the boot process still hangs. Please let me know if I should provide any other information.
    Last edited by dhavalparmar (2012-12-30 11:45:25)

    Ok.. So my Arch Linux randomly decided to work. I'm sure I didn't do anything between my last "not working" state and my current "working" state. Below are a few things I tried:
    I thought of trying an earlier build of ArchLinux, and downloaded archlinux-2012.11.01-dual.iso and made a bootable USB out of it. It still hung.
    I was getting error messages during Arch boot that the last access time for the disks was at a future date. I found out that Ubuntu was using localtime instead of UTC and screwing up my hardware clock. I fixed it, and thought maybe the time issues were causing the boot problem. But fixing time didn't solve my problem.
    I chrooted into Arch from my Ubuntu install, ran 'sudo pacman -Syyu' and updated my Arch install.
    I thought maybe GDM isn't starting up. I re-enabled the service using 'systemctl enable gdm.service'.
    I removed OpenNTPd and installed NTPd. Enabled the daemon using 'systemctl enable ntpd'
    None of the above solved the problem, and rebooting to Arch still hung the system. So I stopped fiddling with it yesterday. Today, as usual, I just tried logging into Arch.. And it just worked out of the blue. The solution to me is as mysterious as the problem.
    I told this to my friend who introduced me to Arch, and this is what he said:
    Damn it computers, you were supposed to be deterministic!

  • [SOLVED]/usr/lib/arch-tempfiles line 106: install:command not found

    Hi everyone!
    This is my boot.log
    http://pastebin.com/1gfynhSN
    It says"/usr/lib/initscripts/arch-tmpfiles:line 106: install:command not found".This is leading to problems such as dbus and network manager not being started(even manually),no shutdown option,not able to 'open' log files without sudo  etc.
    I think a possible reason for this is that I had messed up with symlinks.I had issued the command
    sudo ln -s /bin/install /usr/bin/install
    .Then I had used
    cd /bin/
    unlink install
    Now,I find that /bin/install and /usr/bin/install does not exist.(I have deleted them!) .How can I fix this up?Any help would be appreciated.
    Last edited by adwaita45 (2012-04-05 20:41:40)

    Reinstall coreutils (or manually extract install from the package and put it in /usr/bin).
    Last edited by Raynman (2012-04-05 18:14:10)

  • [solved] arch kernel freezes, how can I replace it with lts

    the kernel freezes on almost every boot; I'm referring to the kernel installed and downloaded when I used the net install to install arch
    how do I install the lts kernel ? maybe the lts won't freeze...
    Last edited by Chrys349 (2011-11-26 16:13:38)

    Chrys349 wrote:
    solved... I got rid of kernel freeze, or kernel hang, by appending the "acpi=off" parameter in grub
    I have no idea what "acpi=off" does, but it's the olny solution I found that enables me to both install arch and use it...
    Keep an eye on the battery meter, w/o acpi your computer might be using more power.

  • Battery management for T440s (two batteries), with tpacpi-bat ?

    Hi everybody,
    the latest ThinkPad T440s has two batteries, one internal, one external.
    Now, i followed the guide to enhance battery lifespan, as described in the T420 wiki article.
    (https://wiki.archlinux.org/index.php/Le … 0#Tp_smapi)
    But, with the two batteries, only one gets charged to the specified threshold, while the other one (probably the internal one ?)
    remains stuck at 51% ...
    Is there a way to charge both batteries to threshold, without physically removing one ?
    Regards,
    N
    EDIT: Ok, just found out that tp_smapi isn't really supported at all, so what i'm talking about are the tpacpi-bat scripts ...
    Last edited by oxygen_wobble (2015-03-10 20:11:36)

    My machine will charge the internal battery to somewhere around 70%, then charge the removable battery pretty much all the way, then come back and top off the internal.  It does this without any scripts or attempts to control battery thresholds.  The firmware alone handles this.
    I do have various powertop recommended settings that allow for longer battery life.  But as far as attempting to control battery thresholds, I figure that all batteries wear out eventually... and that takes a bit, so why not just allow them to do what the firmware intends?

  • How to install cinnamon after arch linux core was installed?

    Hi,
    Does anyone know how to install cinnamon desktop environment after arch linux core was installed? It can access internet but no desktop environment now. So how to install and configure cinnamon on arch linux via command?
    Many thanks!

    after arch linux core was installed
    So you finished installing the basesystem or also bootloader, graphics and so on? (https://wiki.archlinux.org/index.php/Beginners'_Guide)
    If you finished installing with the Beginners Guide you need to install the cinnamon package (pacman -S cinnamon). After you installed cinnamon you need a display manager - e.g. lxdm (You can use another one, here's an overview: https://wiki.archlinux.org/index.php/Display_Manager). If you want to use lxdm with cinnamon you have to install the lxdm package (pacman -S lxdm) and enable it afterwards (systemctl enable lxdm.service). If you've done with this just restart, you should see the graphical display manager you installed. If there's a dropdownmenu or something like that (e.g. when you use gdm instead of lxdm) choose cinnamon as display environment and login.
    More informations can be found in the wiki:
    Display Manager: https://wiki.archlinux.org/index.php/LXDM
    Display Environment: https://wiki.archlinux.org/index.php/Cinnamon

  • I upgraded Safari in my Mac (10.6.8 Leopard) but the new version does not work with my system so that I now have not a working browser. How can I solve the problem and/or install back my previous Safari version?

    I have upgraded Safari in my Mac, but the new Safari does not work with my system. So I find myself without any working browser. How can I solve this problem and/or install my previous Safari version?

    Reinstall Safari 5.1.10 for OS X 10.6.8: http://support.apple.com/kb/dl1569. Might do the trick.
    But, frankly, I don't think that simply reinstalling the old Safari will work because of all the peripheral, under the hood changes that happen when you upgrade from one version of Safari to another. Reinstalling 5.1.10 may be insufficient to turn back the clock. (This is the moment where a Time Machine or another form of full backup would save your bacon.)
    While you're getting a copy of Safari 5.1.10, get a copy of Firefox (https://www.mozilla.org/en-US/firefox/desktop/), too, so that you have an alternate browser to use as you're sorting matters.

  • Will re-install of System Solve "Getting "try again" when installing..."

    Have yet to solve "Getting "try again" when installing software..." posted yesterday. Also note inability to perform Safe Boot. Will re-installation of System software (Tiger) restore the functions lost?
    If I'm obliged to do this, any tips on how to: 1) preserve my Internet settings, including Bookmarks; 2)saved (not yet deleted) emails; and (3) my Address book? Where are they? how do I identify these files? Can I do some sort of backup before I go to Install?

    For the convenience of others, here is the list to the other topic:
    http://discussions.apple.com/message.jspa?messageID=9414774#9414774
    The basic problem appears to be disk directory corruption. It is very unlikely reinstalling the OS will cure that since you also appear to want to preserve all your files. In fact, reinstalling the OS might create more damage to your files since the computer has lost track of some of them and might just overwrite them not knowing they are there.
    You either need to try to repair the directory using Diskwarrior (since DU apparently failed), or you need to wipe the drive (and all your files) then reinstall your OS. If doing the second option you should, of course, back up your data files first. However I can't help but feel when people mention backing up a damaged directory that your backups may be incomplete since, again, the computer has lost track of some parts of the files and may not make a complete copy. If I was in your situation, and could afford it, I'd go for getting a copy of Diskwarrior so you can actually repair your drive. If I couldn't afford it I would back up my data files, wipe the drive, then reinstall everything again from scratch, then copy the data files back on and keep my fingers crossed that none of them was part of the corruption.

  • [solved] Arch with GNOME 2?

    Hi everyone,
    I'm a new Arch user, have been using Ubuntu for about two years now and decided this morning to give Arch a try; the install wasn't too bad, the only ultimate problem was GNOME 3... I'm hoping somebody here can tell me if there's a way to install Arch from scratch with GNOME 2 and Compiz instead of GNOME 3? I ended up removing G3 and I'm now using KDE, which is also not what I want, but certainly a million times better than G3.
    I had a quick look around, and it's clear that I'm not the only one who hates G3, the old threads on this forum regarding a downgrade are pointing to a lot of empty links, hence my new thread on the matter.
    I understand that it's faster to use G3 and so-on, but really it looks like it was built for people who haven't got a clue how to use a PC, and if I wanted that sort of "simplicity" then I would have brought a Mac. I absolutely DESPISE GNOME 3 and I'm really sorry if that has offended anyone.
    All I want is the simple, minimal interface that I had with G2, with the cute little foot in the top left corner, my customised menus and the basic window effects; that's it. I don't want Duplo-sized icons, I don't want fancy effects and I don't want the 0.0001 seconds of speed difference or extra security and reliability, because I'd rather my PC burst into flames from some G2 bug than I ever use G3 to do my computing.
    Last edited by Juln (2011-05-15 10:05:41)

    All I want is the simple, minimal interface that I had with G2, with the cute little foot in the top left corner, my customised menus and the basic window effects; that's it. I don't want Duplo-sized icons, I don't want fancy effects and I don't want the 0.0001 seconds of speed difference or extra security and reliability, because I'd rather my PC burst into flames from some G2 bug than I ever use G3 to do my computing.
    That's hilarious! lol.
    G3 is actually pretty good. If you don't like gnome-shell - then simply don't use it.  Compiz works really well in G3 ( i am using the latest version 0.9.5, compiled yesterday from source).  you can customize gnome3 menus, much in the same way as Gnome2.  However, the menus are fairly slow, when i compare them to my gtk2-menu - which had zero-delay in opening.  I've actually removed gnome-panel and replaced it with other tools, as i found gnome-panel to be a bit lame in G3.....you may not mind it though.
    anyways,  I wouldn't be too worried about running G3 - a lot of people are in a scramble because they aren't interested in the shell. but the shell isn't a requirement. I think the developers would just prefer that everybody uses GS. while there was talk of not having it supported in the future, i doubt that will happen ~ as we all know Canonical will be porting Unity to run on top of the gnome 3 stack. (right now it uses gnome2).  So i tend to think we should be able to run fallback, for a long time
    it just might take some extra-tweaking, to get it the way you want your desktop to be. I'm now actually liking it better than gnome2, myself.  but it did take a bit of adjustment, but "under the hood" - gnome 3 has some nice features and improvements ove G2...
    theming isn't too difficult either - so if you don't like fat menus/giant icons... then, you can use a theme that doesn't have that - or edit your theme instead. (i sort of did both). I'm actually working on a nice dark theme, that has gtk2 style window-decorations (narrow/thin), slim menus and some other goodies. Gtk3 - looks really great too!
    jordan

  • [PARTIALLY SOLVED] Arch on MacBook4: can't install GRUB

    I've been running Arch on my MacBook4 (4 years old now) for quite some time in dualboot mode and have already set up GRUB sucessfully several times. I therefore feel kinda bad that I have to open a new thread this time, but after wasting the whole morning on Google, I don't see another solution.
    What has happened is that I had to resize my Linux partitions because there was no space left on my system partition. I have the following partitions:
    sda1 - fat32 EFI partition
    sda2 - hfs+ Mac partition
    sda3 - ext4 Arch system partition
    sda4 - ext4 Arch home partition
    As mentioned, when I first organized my Arch partitions this way, I could successfully set up GRUB, but it was GRUB1 which I had to set up via grub shell. Now, as it looks to me, GRUB1 is not available anymore but only GRUB2 which doesn't use the grub shell anymore. I've not been able to install GRUB2 the last time (that's why I ended up using GRUB1) and I'm still not able to install it this time!
    When I start the MacBook and choose the Linux partition in rEFIt, I get to a black screen displaying GRUB_ and doing nothing more (because I don't have GRUB set up). That's how far I am right now.
    Now can anyone help me with setting up GRUB(2)? Thanks in advance for any help!
    Last edited by cryptkeeper (2012-09-05 06:13:14)

    I've succeeded in working around the problem of installing GRUB2 after I found out that grub-legary is nothing else but GRUB1. So all I had to do to get back a running system was:
    - removing the GRUB2 installation
    - installing grub-legacy
    - copying my old menu.lst to /boot/grub/
    - grub shell: root (hd0,2); setup (hd0); quit
    Now it works like a charm again.
    Still I only consider this thread half solved because I still don't know how to install GRUB2 on my system. It's not of vital interest to me anymore (I don't care too much why, that is, due to which boot loader, my system boots, as long as it boots), but a solution would nonetheless be nice since this thread is opened anyway.
    So: How can GRUB2 be installed on a MacBook dualboot system with rEFIt such as mine?

  • [SOLVED] - Arch Fresh Install - Errors

    I have a few ERRORS from a Fresh Install that I need a bit of help with:
    1.  I've created a user (larry) and added myself to audio,lp,optical,wheel,storage,video,power,scanner and inserted the password.
         But when I try to login with user larry and my password, I am unable to login.  (My password is the same as root and I can login
         as root.)  Is there a way to reset my user password without deleting user larry?  I don't want to lose the files I have in /home/larry.
    2.  In /var/log/xorg.0.log I have an error displayed:
         (EE) Failed to load module "fbdev"
         I've searched and found that I might also need to use pacman -S xf86-video-fbdev  Do I also need to install this package even though
         I have the xf86-video-intel (i915 Video Driver is used in Debian 6) installed?  Some postings say don't use it as it is SLOW?  I haven't
         a clue????
    3.  My .xinitrc in /home/user has startxfce4 enabled, but xfce never starts.  But, I can ONLY login as root, and that might be causing the
         problem by not using /home/larry/.xinitrc  I've only got two partitions on my USB Flash Drive and they are / (1.95 Gig) and also
         /home (1.96 Gig).  I'd like to get Arch running from USB Flash Drive before I install on a Hard Drive.  If I am logged in as root, how can
         I get xfce to start
    4.  I installed the ttf-dejavu fonts with pacman -S ttf-dejavu   I got an error stating: mkfontscale:  /usr/lib/libz.so.1 Version ZLIB_1.2.5.2 NOT FOUND!
         How do I correct this missing lib problem?
    I've got my Wifi working via a small script, so far I've kept fixing the errors/problems and I'm keeping a log so I can duplicate the process.
    I just need a bit of help getting the above issues solved.  When XFCE finally runs as my Desktop I'll be happy.
    Thanks.
    Larry
    Last edited by lkraemer (2012-02-21 15:16:34)

    1) Congrats.
    2) You can remove it, but I don't think it should matter; it will likely only take up a bit of space.
    3) Glad that's working.  This means X is set up well.  If you do find yourself in the TWM environment again, the default is pretty vanilla.  To exit I believe you just type "exit" into each terminal, when there are no running 'clients' remaining, TWM and X quit.  Alternately, you can Ctrl-Atl-F1 to get to tty1 (or where ever you ran startx/xinit from) and hit Ctrl-C to force-quit X.
    Other) X can be fairly verbose.  I don't think those warnings are anything to be concerned with, unless they seem related to a feature you are lacking.  It is common for programs to try one feature and fall-back on another if it is not available.  I suspect the gtk warning is just this sort.  I get a boatload of gtk warnings whenever I run many gui apps, but everything works fine.  The thunar error is likely because you don't have one of the addons installed.  Thunar has many bells and whistles that can be added, and it may be checking for all of them when it starts.  The warning says one of them is not there.  If it's a feature you want, check out the thunar wiki's and install the required packages - otherwise, I suspect it's safe to ignore.
    Do you have Xfce up and running?

  • [SOLVED] ARCH install on EFI computer with GPT

    Hello everyone. I'm having a problem with installation of arch. When i boot with pendrive "made" with dd i get some "Install override security policy" (or something like that) anyway i can't "edit" pendrive after dd so i create MSDOS partition table and format as FAT32 and copy content of the iso to the pendrive. Boots the same so i googled that i have to overwrite grubx64.efi with loader.efi so i done that and it boots fine. But pendrive doesn't install grub it says that my system doesn't support efi, so i followed this and and from google i read about  i have to activate efivars with modprobe but it doesn't work either. I tried EFI install with VirtualBox but error still is the same. Anybody installs arch on UEFI machine ?? Ubuntu (and Xubuntu, Lubuntu...) & Fedora works fine with UEFI install. I don't want to move disk to MBR because of MBR limitations (for example only four primary partitions) and i have important data on the disk so i can't do that.
    I tried Arch based distros and there are also problems with install. Manjaro after install shows that UEFI variables wasn't detect properly ( or something like that). Antergos doesn't boot because there is not necessary files (who even release that? this doesn't even work in virtual box) after adding these files i've get 30 seconds Arch problem because label is incorrect antergos says that label have to be ANTERGOS201311 and i can't give that label because FAT32 has 11 characters limitation and if i tried work it out with ext4 it doesn't work at all (there is no prefix UEFI in boot options). I can't also solve that with dd because i have to paste missing files to the pendrive and dd make pendrive unwritable.
    Doesn't matter, issue solved. All i have to do is to
    mount -t efivarfs efivarfs /sys/firmware/efi/efivars
    Last edited by maslascher (2013-12-01 11:04:49)

    That all depends on the settings you give your VM, you can make it virtualize either a BIOS or a UEFI machine irrelevant of the host firmware.
    https://www.virtualbox.org/manual/ch03.html#efi
    I'm not sure if UEFI is still considered experimental or how well it works, as I always just use BIOS mode.
    Last edited by slithery (2015-06-12 20:17:46)

  • [SOLVED]How exactly do you install Arch using UEFI?

    I want to switch my laptop to UEFI. I have a few questions I'd like to ask.
    * Does UEFI require a bios boot partition?
    * If not but I add a bios boot partition and efi partition is it true I can boot into my system both with UEFI enabled and not enabled?
    Will the following set my laptop to use UEFI?
    Create a partition scheme as follows;
    1. bios boot -- about 2mb -- ef02
    2. efi boot partition -- about 200mb (is this size about right?) -- fat32
    3. root -- 8300
    4. swap
    5. home -- 8300
    Then when I mount everything I make sure to mount the efi partition like
        mount /dev/sda2 /mnt/boot/efi
    It goes to /boot/efi right?
    Then when installing GRUB, I install it like;
        grub-install --efi-directory=/boot/efi --bootloader-id=grub_uefi --recheck
    And finally I'd run the
        grub-mkconfig -o /boot/grub/grub.cfg
    Is that the gist for the most part?
    Last edited by stevenmw (2014-12-18 17:51:37)

    Here is what I did,
    I booted Arch install media (not from UEFI).
    I made my partition scheme is gdisk:
      1. 2M -- ef02 -- BIOS boot
      2. 500M -- ef00  -- efi
      3. 30G -- 8300 -- root
      4. 12G -- 8200 -- swap
      5. 195G -- 8300 -- home
    I then did my mkfs:
      mkfs.ext2 /dev/sda2
      mkfs.fat -s2 -F32 /dev/sda2
      mkfs.ext4 /dev/sda3
      mkswap /dev/sda4
      mkfs.ext4 /dev/sda5
    When I first made my file extensions I made the mistake of not making the efi partition fat32. I knew it had to be fat32 and I wasn't sure if just making it ef00 was enough. So I searched Google. I didn't find much so I pushed forward.
    I eventually got an error when trying to do grub-install, it said /dev/sda2 does not look like and efi partition.
    So I thought about it, was it the size I chose, was it that I was just putting it in /boot, was it not fat32? I immediately decided it must not be fat32. And I was right. After a search I discovered I needed to do mkfs.fat. So I did this and success! Grub installed everything where it needed to be. (So it is true when they say Arch doesn't care if you have /boot/efi or /boot/EFI. Just using /boot is enough. That is fact.)
    But now I had another error. I forgot to install efibootmgr package... By this time I thought I had it so I started all over. This was actually my laptop so I wasn't going to give it more than two tries. So I started from scratch. A second and final try...
    I set up my partition scheme, did my mk stuff, and mounted all of my filesystems. Then Installed the base and base-devel packages. I went into arch-chroot on /mnt and then into a bash..
    I went through a couple of basic setup things and then I installed grub and efibootmgr. I then ran
        grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub_uefi --recheck
    Hooray! No errors reported! I checked /boot and everything was there and laid out perfectly!
    So I did the grub-mkconfig..... And rebooted.
    But it wouldn't boot!
    I started to dig around the Arch wiki and read it is a good idea to start out in UEFI mode and go into the  install media and proceed. So I tried this in a VM. The Arch install media would not start in UEFI mode. So I just came to the conclusion that there is something I am missing. Either in GRUB or something I don't understand about my laptop.
    I installed Fedora 21 in a VM out of UEFI mode and then again where I started out in UEFI mode. Starting out in UEFI mode did seem to make a difference. I just gave up on my laptop and installed it back with bios and no UEFI. I'm going to dig around and see if I can find what I'm doing wrong.
    Could it boil down to not being able to start out in UEFI mode and then switch back into UEFI mode after install? I highly doubt it. There is just something I'm missing..
    Marking this as solved. Thanks everyone.
    Edit:
    Starting out in UEFI mode made the difference! I just wasn't being patient with my VM. Starting out in UEFI mode and then performing the install makes the difference! After following that process I can boot into Arch using UEFI!
    Also, I mentioned I couldn't get Arch install media to start in UEFI. That was my fault. When i created my usb i didn't make it a UEFI bootable device! So I would go into my boot options and I would see UEFI but my usb only showed in the legacy list.
    Last edited by stevenmw (2014-12-18 20:47:57)

  • [SOLVED] Arch Linux on (32-bit?) ThinkPads?

    Hi all,
    I'm a newbie, looking at getting a ThinkPad netbook, which I hope to run Arch on. What am I looking for?
    # battery life greater than 4 hours
    # price less than $300 USD
    # trackpoint
    # carrying out tasks associated with being a student - browsing email/internet/pdfs, compiling LaTeX documents, maybe running Mathematica or Maple.
    # not concerned about storage, watching videos or playing games.
    # tablet may be nice, but not a major concern.
    I initially considered an X30/X31/X40/X41, but these seem to have 32-bit processors. So I thought Arch would not work. But then I see various Arch Wikis on installing on an X31/X41 etc. Could someone please explain why Arch can be installed on these 32-bit machines, and any considerations I should take into account in doing so?
    As an aside, I then went looking at the X60/X61 options, however these seem to have very bad over-heating problems, so I then considered X200 models. However these are very pricey, and seem like overkill if Arch will run on an X41 for example. Any other recommendations would be much appreciated!
    Many regards,
    Ianhoolihan
    Last edited by ianhoolihan (2011-08-21 10:27:45)

    Arch works just fine on 32-bit if it's a 686 processor. Installing Arch on an nvidia Tegra tablet may not work (try http://archlinuxarm.org/ instead), but anything standard like an Intel or AMD processor is OK.
    Arch will run on even a decade old Pentium III so you don't need a powerful processor, it only depends what apps you want to install.
    I have no idea about power management / heat issues.
    Last edited by karol (2011-08-20 22:48:03)

  • [SOLVED] Arch not showing up in grub after ArchBang install

    I have a triple booting machine with Windows7, Arch, and ArchBang.  Windows 7's system partition is where I have the bootloader installed.  I recently installed Archbang and now my other Arch is not showing up in grub.  I tried updating the grub menu by running os-prober, installing grub to the boot partition and doing a grub-mkconfig but it will not find the other Arch on the other partition.  I'm thinking maybe this is a naming issues since they have the same grub entry name?  I don't know.  Any thoughts?
    Lenovo Z580 i5
    Arch 64
    ArchBang 64
    Windows 7 64
    Last edited by tictoerest (2013-03-14 06:18:50)

    Okay nevermind, I got it fixed.  I just copied the entry from the other Arch's grub.cfg and pasted it into the new grub.cfg

Maybe you are looking for

  • How to get Check printing in English or Arabic language

    Hi My client is in Saudi Arabia. We are in realization phase. Client requirement is Check printing should come either in English or in Arabic. As per their requirement they will take the print out. So, how can we maintain that and what is the procedu

  • IDOC to XI :  HTTP_RESP_STATUS_CODE_NOT_OK   401 Unauthorized

    Hi Guys, I meet a problem while send idoc from ECC to XI in testing enviroment. I check the messege ID, find red flag with error message   <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>   <SAP:P1>401</SAP:P1>   <SAP:P2>Unauthorized

  • Join to a corporative membership plan

    Hello everyone. I created an Adobe ID and install few adobe' softwares as a trial version. My company bought a Creative Cloud membership plan and provided the access to the same e-mail that I made my registration. The problem is that when I access my

  • Best Backup option

    Hi all, There were some disk space issues in one of the servers having a development database, so the network team had moved the table spaces and some other files, but the database crashed after which they put the files back. When i checked the datab

  • Be our December TechNet Guru. Give the gift of code!

    It's that time of the year again! It's Giving time! A time to think of those less awesome than you. A time to give something back to the community. Think of those happy faces you will make, as they open that article! Remember, "A TechNet Wiki article