Jump to content
Read the Funtoo Newsletter: Summer 2023 ×

cardinal

Members
  • Posts

    490
  • Joined

  • Last visited

  • Days Won

    59

Posts posted by cardinal

  1.  

     sysresccd / # emerge -pv xorg-drivers

     

    Installing graphical environment while still in the chroot indicates you are not following the install directions.

    Complete this without skipping any steps to Restart your system : http://www.funtoo.org/Install

    New install/configuration of base minimal funtoo, root password, and  bootloader config should be completed if you followed the directions completely.

    Remove the live cd, funtoo should boot to command prompt.

    After you boot the new funtoo system,login as root follow http://www.funtoo.org/Install  Profiles to set the profile

    Setting the correct profile is very important, more info here :  http://www.funtoo.org/Funtoo_Profiles

    Follow directions here: http://www.funtoo.org/Funtoo_Linux_First_Steps

    The last section is Installing a Graphical Environment

  2. System profile:

    funtoo linux # epro show
    
    === Enabled Profiles: ===
    
            arch: x86-64bit
           build: current
         subarch: core2_64
          flavor: desktop
         mix-ins: lxde
    
    
    === All inherited flavors from desktop flavor: ===
    
                         workstation (from desktop flavor)
                                core (from workstation flavor)
                             minimal (from core flavor)
    
    === All inherited mix-ins from desktop flavor: ===
    
                                   X (from workstation flavor)
                               audio (from workstation flavor)
                                 dvd (from workstation flavor)
                               media (from workstation flavor)
          mediadevice-audio-consumer (from media mix-in)
                    mediadevice-base (from mediadevice-audio-consumer mix-in)
          mediadevice-video-consumer (from media mix-in)
                    mediadevice-base (from mediadevice-video-consumer mix-in)
            mediaformat-audio-common (from media mix-in)
              mediaformat-gfx-common (from media mix-in)
            mediaformat-video-common (from media mix-in)
                      console-extras (from workstation flavor)
                               print (from desktop flavor)
    

    I avoided compiling 32-bit libs when merging ati-drivers by adding this to my /etc/portage/package.use file:

    >=x11-drivers/ati-drivers-14.12-r4 -abi_x86_32 

    I was willing to sacrifice the ati gui configuration to keep qt4 off my system so I have -qt4 as well.
    This is what my line looks like in total:

    >=x11-drivers/ati-drivers-14.12-r4 -abi_x86_32 -qt4
    funtoo linux # eix -I ati-drivers
    [i] x11-drivers/ati-drivers
    Available versions: (1) 13.12^td 14.12-r4^mtd
    {debug +modules pax_kernel qt4 static-libs +vaapi ABI_X86="32 64" KERNEL="linux"}
    Installed versions: 14.12-r4(1)^mtd(10:08:32 PM 07/13/2015)(modules vaapi -debug -pax_kernel -qt4 -static-libs ABI_X86="64 -32" KERNEL="linux")
    Homepage: http://www.amd.com
    Description: Ati precompiled drivers for Radeon Evergreen (HD5000 Series) and newer chipsets
  3. Pre-compiled sys-kernel/debian-sources kernel is built with KVM
     
     

    rj@funtoo ~ $ uname -a
    Linux funtoo 3.19.3-1~exp1 #1 SMP Mon May 18 05:17:08 2015 x86_64 Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz GenuineIntel GNU/Linux
    
    rj@funtoo ~ $ sudo modinfo kvm
    filename:       /lib/modules/3.19.3-1~exp1/kernel/arch/x86/kvm/kvm.ko
    license:        GPL
    author:         Qumranet
    depends:        
    intree:         Y
    vermagic:       3.19.3-1~exp1 SMP mod_unload modversions
    parm:           allow_unsafe_assigned_interrupts:Enable device assignment on platforms without interrupt remapping support. (bool)
    parm:           ignore_msrs:bool
    parm:           min_timer_period_us:uint
    parm:           tsc_tolerance_ppm:uint
    
    rj@funtoo ~ $ sudo modinfo kvm-intel
    filename:       /lib/modules/3.19.3-1~exp1/kernel/arch/x86/kvm/kvm-intel.ko
    license:        GPL
    author:         Qumranet
    alias:          cpu:type:x86,ven*fam*mod*:feature:*0085*
    depends:        kvm
    intree:         Y
    vermagic:       3.19.3-1~exp1 SMP mod_unload modversions
    parm:           vpid:bool
    parm:           flexpriority:bool
    parm:           ept:bool
    parm:           unrestricted_guest:bool
    parm:           eptad:bool
    parm:           emulate_invalid_guest_state:bool
    parm:           vmm_exclusive:bool
    parm:           fasteoi:bool
    parm:           enable_apicv:bool
    parm:           enable_shadow_vmcs:bool
    parm:           nested:bool
    parm:           ple_gap:int
    parm:           ple_window:int
    parm:           ple_window_grow:int
    parm:           ple_window_shrink:int
    parm:           ple_window_max:int
    
    rj@funtoo ~ $ sudo modinfo kvm-amd
    filename:       /lib/modules/3.19.3-1~exp1/kernel/arch/x86/kvm/kvm-amd.ko
    license:        GPL
    author:         Qumranet
    alias:          cpu:type:x86,ven*fam*mod*:feature:*00C2*
    depends:        kvm
    intree:         Y
    vermagic:       3.19.3-1~exp1 SMP mod_unload modversions
    parm:           npt:int
    parm:           nested:int
    
    rj@funtoo ~ $ grep -i kvm  /usr/src/linux-debian-sources-3.19.3/.config
    CONFIG_KVM_GUEST=y
    # CONFIG_KVM_DEBUG_FS is not set
    CONFIG_HAVE_KVM=y
    CONFIG_HAVE_KVM_IRQCHIP=y
    CONFIG_HAVE_KVM_IRQFD=y
    CONFIG_HAVE_KVM_IRQ_ROUTING=y
    CONFIG_HAVE_KVM_EVENTFD=y
    CONFIG_KVM_APIC_ARCHITECTURE=y
    CONFIG_KVM_MMIO=y
    CONFIG_KVM_ASYNC_PF=y
    CONFIG_HAVE_KVM_MSI=y
    CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
    CONFIG_KVM_VFIO=y
    CONFIG_KVM=m
    CONFIG_KVM_INTEL=m
    CONFIG_KVM_AMD=m
    # CONFIG_KVM_MMU_AUDIT is not set
    CONFIG_KVM_DEVICE_ASSIGNMENT=y
    
    
    
  4. I merged/tested parole twice with USE="-clutter" and USE="clutter"

    In both cases I had no problem starting parole as a regular user.
    The most annoying problem with parole was the screen went black when the video was paused.

    No playback speed control,few keyboard shortcuts is a problem with every gstreamer player I've tested.

    I have an avi with ac3 2 channel stereo audio that only played out of the right speaker.

    I could hear sound effects but no voices,the same file played in mplayer or vlc played audio in both channels.

    Gstreamer was using the VA-API which wouldn't play a video-dvd using an amd/ati radeon 5450 with radeon/mesa.

    I had to switch my driver over to proprietary fglrx (x11-drivers/ati-drivers) for video-dvd.

    Video-dvd menu navigation is pretty good using either mouse or right click menu to jump to chapters.

    Mplayer based players are my favorite.

  5. Lxde uses udisks2 with console-kit/polkit enforcing user permissions.
    If user console-kit session is active = TRUE then user can mount/eject usb flash drive without being asked for the password.
    This works on my system with no configuration using a display manager such as lxdm,slim,or lightdm.

    Output after using a login manager:
    ck-list-sessions
    Session1:
    unix-user = '1000'
    realname = '(null)'
    seat = 'Seat1'
    session-type = 'x11'
    active = TRUE
    x11-display = ':0.0'
    x11-display-device = '/dev/tty7'
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2015-09-12T15:32:33.676540Z'
    login-session-id = '1'

    My .xinitrc to login from console followed by startx for xsession:

    rj@funtoo ~ $ cat .xinitrc 
    exec ck-launch-session dbus-launch --sh-syntax --exit-with-session startlxde
    

    Output after console login followed by startx:
    rj@funtoo ~ $ ck-list-sessions
    Session1:
    unix-user = '1000'
    realname = '(null)'
    seat = 'Seat1'
    session-type = ''
    active = FALSE
    x11-display = ''
    x11-display-device = ''
    display-device = '/dev/tty1'
    remote-host-name = ''
    is-local = TRUE
    on-since = '2015-09-12T20:28:56.582349Z'
    login-session-id = '1'
    idle-since-hint = '2015-09-12T20:29:32.526813Z'
    Session2:
    unix-user = '1000'
    realname = '(null)'
    seat = 'Seat1'
    session-type = ''
    active = TRUE
    x11-display = ':0'
    x11-display-device = '/dev/tty7'
    display-device = '/dev/tty1'
    remote-host-name = ''
    is-local = TRUE
    on-since = '2015-09-12T20:29:05.207903Z'
    login-session-id = '1'

    Udisks2 default polkit policies to mount/umount removable media:
    implicit active: yes from policies, if ck-list-sessions outputs active = TRUE then password is not required.

    Mount removable media,usb flash drives:
    pkaction --verbose --action-id org.freedesktop.udisks2.filesystem-mount
    org.freedesktop.udisks2.filesystem-mount:
    description: Mount a filesystem
    message: Authentication is required to mount the filesystem
    vendor: The udisks Project
    vendor_url: http://udisks.freedesktop.org/
    icon: drive-removable-media
    implicit any: auth_admin
    implicit inactive: auth_admin
    implicit active: yes

    Eject/ unmount removable media flash drives:
    pkaction --verbose --action-id org.freedesktop.udisks2.eject-media
    description: Eject media
    message: Authentication is required to eject media
    vendor: The udisks Project
    vendor_url: http://udisks.freedesktop.org/
    icon: drive-removable-media
    implicit any: auth_admin
    implicit inactive: auth_admin
    implicit active: yes

  6. Do not do any kernel  development under the /usr/src/ directory tree at all, but only in a local user directory where nothing bad can happen to the system.

    Kernel development means writing new or modifying existing kernel source code.

    You want to configure and build a kernel using existing code.

    Follow the directions in the funtoo wiki and change directory to /usr/src/linux to configure/build a kernel.

    If multiple kernel sources are installed with emerge set the /usr/src/linux symlink with eselect depending on the sources to be built.

    rj@funtoo ~ $ eselect kernel list
    Available kernel symlink targets:
      [1]   linux-debian-sources-3.16.7
      [2]   linux-debian-sources-3.19.3 *
    rj@funtoo ~ $ eselect kernel show
    Current kernel symlink:
      /usr/src/linux-debian-sources-3.19.3
    rj@funtoo ~ $ ls -l /usr/src/linux
    lrwxrwxrwx 1 root root 27 Jul 13 22:07 /usr/src/linux -> linux-debian-sources-3.19.3
    rj@funtoo ~ $ sudo eselect kernel set linux-debian-sources-3.16.7
    rj@funtoo ~ $ eselect kernel list
    Available kernel symlink targets:
      [1]   linux-debian-sources-3.16.7 *
      [2]   linux-debian-sources-3.19.3
    rj@funtoo ~ $ eselect kernel show
    Current kernel symlink:
      /usr/src/linux-debian-sources-3.16.7
    rj@funtoo ~ $ ls -l /usr/src/linux
    lrwxrwxrwx 1 root root 27 Sep 12 12:55 /usr/src/linux -> linux-debian-sources-3.16.7
    
  7.  

    I read the funtoo wiki about building a kernel from source, when i have to type the command make localmodconfig is the same as in gentoo make menuconfig?

    No, "make menuconfig" and "make localmodconfig" are different. Read the description from the kernel sources README.

    Copied from /usr/src/linux/README
    
    CONFIGURING the kernel:
    
    - Alternative configuration commands are:
    
    "make config"      Plain text interface.
    
         "make menuconfig"  Text based color menus, radiolists & dialogs.
    
         "make nconfig"     Enhanced text based color menus.
    
         "make xconfig"     X windows (Qt) based configuration tool.
    
         "make gconfig"     X windows (Gtk) based configuration tool.
    
         "make oldconfig"   Default all questions based on the contents of
                            your existing ./.config file and asking about
                            new config symbols.
    
         "make silentoldconfig"
                            Like above, but avoids cluttering the screen
                            with questions already answered.
                            Additionally updates the dependencies.
    
         "make olddefconfig"
                            Like above, but sets new symbols to their default
                            values without prompting.
    
         "make defconfig"   Create a ./.config file by using the default
                            symbol values from either arch/$ARCH/defconfig
                            or arch/$ARCH/configs/${PLATFORM}_defconfig,
                            depending on the architecture.
    
         "make ${PLATFORM}_defconfig"
                            Create a ./.config file by using the default
                            symbol values from
                            arch/$ARCH/configs/${PLATFORM}_defconfig.
                            Use "make help" to get a list of all available
                            platforms of your architecture.
    
         "make allyesconfig"
                            Create a ./.config file by setting symbol
                            values to 'y' as much as possible.
    
         "make allmodconfig"
                            Create a ./.config file by setting symbol
                            values to 'm' as much as possible.
    
         "make allnoconfig" Create a ./.config file by setting symbol
                            values to 'n' as much as possible.
    
         "make randconfig"  Create a ./.config file by setting symbol
                            values to random values.
    
         "make localmodconfig" Create a config based on current config and loaded modules (lsmod). 
                               Disables any module option that is not needed for the loaded modules.
                               To create a localmodconfig for another machine,
                               store the lsmod of that machine into a file
                               and pass it in as a LSMOD parameter.
    
                       target$ lsmod > /tmp/mylsmod
                       target$ scp /tmp/mylsmod host:/tmp
    
                       host$ make LSMOD=/tmp/mylsmod localmodconfig
    
                               The above also works when cross compiling.
    
         "make localyesconfig" Similar to localmodconfig, except it will convert
                               all module options to built in (=y) options.
    
       You can find more information on using the Linux kernel config tools
       in Documentation/kbuild/kconfig.txt.
    
     - NOTES on "make config":
    
        - Having unnecessary drivers will make the kernel bigger, and can
          under some circumstances lead to problems: probing for a
          nonexistent controller card may confuse your other controllers
    
        - Compiling the kernel with "Processor type" set higher than 386
          will result in a kernel that does NOT work on a 386.  The
          kernel will detect this on bootup, and give up.
    
        - A kernel with math-emulation compiled in will still use the
          coprocessor if one is present: the math emulation will just
          never get used in that case.  The kernel will be slightly larger,
          but will work on different machines regardless of whether they
          have a math coprocessor or not.
    
        - The "kernel hacking" configuration details usually result in a
          bigger or slower kernel (or both), and can even make the kernel
          less stable by configuring some routines to actively try to
          break bad code to find kernel problems (kmalloc()).  Thus you
          should probably answer 'n' to the questions for "development",
          "experimental", or "debugging" features.
    
  8. hwclock communicates with cmos clock on bios motherboard using /dev/rtc
     

    funtoo rj # hwclock --debug
    hwclock from util-linux 2.25.2
    hwclock: cannot open /dev/rtc: No such file or directory
    No usable clock interface found.
    hwclock: Cannot access the Hardware Clock via any known method.
    
    funtoo rj # ls /dev/r*
    /dev/ram0   /dev/ram11  /dev/ram14  /dev/ram3  /dev/ram6  /dev/ram9
    /dev/ram1   /dev/ram12  /dev/ram15  /dev/ram4  /dev/ram7  /dev/random
    /dev/ram10  /dev/ram13  /dev/ram2   /dev/ram5  /dev/ram8
    

    Device Drivers/Real Time Clock/*** Platform RTC drivers ***/PC-style 'CMOS'

    funtoo rj # modinfo rtc-cmos
    filename:       /lib/modules/4.0.5-gentoo/kernel/drivers/rtc/rtc-cmos.ko
    license:        GPL
    description:    Driver for PC-style 'CMOS' RTCs
    author:         David Brownell
    alias:          platform:rtc_cmos
    alias:          acpi*:PNP0B02:*
    alias:          pnp:dPNP0b02*
    alias:          acpi*:PNP0B01:*
    alias:          pnp:dPNP0b01*
    alias:          acpi*:PNP0B00:*
    alias:          pnp:dPNP0b00*
    depends:        
    intree:         Y
    vermagic:       4.0.5-gentoo SMP mod_unload modversions 
    
    

    When rtc-cmos loads system creates /dev/rtc and /dev/rtc0

    funtoo rj # ls /dev/r*
    /dev/ram0   /dev/ram12  /dev/ram2  /dev/ram6  /dev/random
    /dev/ram1   /dev/ram13  /dev/ram3  /dev/ram7  /dev/rtc
    /dev/ram10  /dev/ram14  /dev/ram4  /dev/ram8  /dev/rtc0
    /dev/ram11  /dev/ram15  /dev/ram5  /dev/ram9
    
    funtoo rj # hwclock --debug
    hwclock from util-linux 2.25.2
    Using the /dev interface to the clock.
    Assuming hardware clock is kept in UTC time.
    Waiting for clock tick...
    ...got clock tick
    Time read from Hardware Clock: 2015/08/30 23:39:43
    Hw clock time : 2015/08/30 23:39:43 = 1440977983 seconds since 1969
    Sun 30 Aug 2015 07:39:43 PM EDT  -0.328634 seconds
    
  9. I run current lxde x86_64
    Emerge layman,add nightmare overlay.
    Add nightmare overlay to /etc/portage/package.mask to stop override of matching funtoo packages which would create version conflict.

    */*::nightmare
    

    Add the package I want from nightmare overlay to /etc/portage/package.unmask

    x11-terms/termite::nightmare
    
    funtoo rj # emerge -pv x11-terms/termite
    
    These are the packages that would be merged, in order:
    
    Calculating dependencies... done!
    [ebuild  NS   #] x11-libs/vte-0.38.3:2.91::nightmare [0.28.2-r207:0::gentoo] USE="termite-patch -debug -glade -introspection -vala" 0 kB
    [ebuild  N    #] x11-terms/termite-9999::nightmare  0 kB
    
    Total: 2 packages (1 new, 1 in new slot), Size of downloads: 0 kB
    
    !!! The following update has been skipped due to unsatisfied dependencies:
    
    x11-libs/vte:2.91
    
    emerge: there are no ebuilds to satisfy ">=x11-libs/gnome-pty-helper-0.40.2".
    (dependency required by "x11-libs/vte-0.40.2::nightmare" [ebuild])
    
    
    The following mask changes are necessary to proceed:
     (see "package.unmask" in the portage(5) man page for more details)
    # required by x11-terms/termite-9999::nightmare
    # required by x11-terms/termite (argument)
    # /etc/portage/package.mask:
    =x11-libs/vte-0.38.3
    
    The following USE changes are necessary to proceed:
     (see "package.use" in the portage(5) man page for more details)
    # required by x11-terms/termite-9999::nightmare
    # required by x11-terms/termite (argument)
    =x11-libs/vte-0.38.3 termite-patch
    
    NOTE: The --autounmask-keep-masks option will prevent emerge
          from creating package.unmask or ** keyword changes.
    
    

    I ignore this

    x11-libs/vte:2.91
    
    emerge: there are no ebuilds to satisfy ">=x11-libs/gnome-pty-helper-0.40.2".
    (dependency required by "x11-libs/vte-0.40.2::nightmare" [ebuild])
    

    and follow package.unmask and package.use instructions.
     
    Add to /etc/portage/package.unmask

    =x11-libs/vte-0.38.3
    
    

    Add to /etc/portage/package.use

    =x11-libs/vte-0.38.3 termite-patch
    
    
    funtoo rj # emerge -av x11-terms/termite
    
    These are the packages that would be merged, in order:
    
    Calculating dependencies... done!
    [ebuild  NS   #] x11-libs/vte-0.38.3:2.91::nightmare [0.28.2-r207:0::gentoo] USE="termite-patch -debug -glade -introspection -vala" 0 kB
    [ebuild  N    #] x11-terms/termite-9999::nightmare  0 kB
    
    Total: 2 packages (1 new, 1 in new slot), Size of downloads: 0 kB
    
    Would you like to merge these packages? [Yes/No] 

    Emerge completes without error.

    funtoo rj # eix -J
    [I] x11-libs/vte
         Available versions:  
         (0)    0.28.2-r207
         (2.90) 0.36.3
         (2.91) 0.38.2 0.38.3 (~)0.38.3[1] [m](~)0.40.2[1]
           {+crypt debug glade +introspection python termite-patch vala PYTHON_ABIS="2.6 2.7"}
         Installed versions:  0.28.2-r207(05:15:26 PM 07/04/2015)(python -debug -introspection PYTHON_ABIS="2.7 -2.6") 0.38.3(2.91)[1](01:04:46 AM 08/22/2015)(termite-patch -debug -glade -introspection -vala)
         Homepage:            https://wiki.gnome.org/action/show/Apps/Terminal/VTE
         Description:         Library providing a virtual terminal emulator widget
    
    [I] x11-terms/termite [1]
         Available versions:  (~)7 (~)8 (~)9 (~)10 (~)9999
         Installed versions:  9999(01:05:06 AM 08/22/2015)
         Homepage:            https://github.com/thestinger/termite
         Description:         A keyboard-centric VTE-based terminal
    
    [1] "nightmare" /var/lib/layman/nightmare
    
    Found 2 matches.
    
    
×
×
  • Create New...