Giter VIP home page Giter VIP logo

raphael / linux-samus Goto Github PK

View Code? Open in Web Editor NEW
182.0 182.0 36.0 7.2 GB

Linux 4.16 on Chromebook Pixel 2015

License: GNU General Public License v2.0

Makefile 0.27% C 96.24% Assembly 1.48% C++ 1.34% Objective-C 0.31% Shell 0.10% Perl 0.12% Clojure 0.01% Awk 0.01% Python 0.08% Yacc 0.02% Lex 0.01% UnrealScript 0.01% XS 0.01% M4 0.01% GDB 0.01% Gherkin 0.01% Roff 0.02% Perl 6 0.01% sed 0.01%
kernel linux linux-kernel linux-samus

linux-samus's Introduction

Linux for Chromebook Pixel 2015

This repository contains packages for Debian and Arch Linux that installs the Linux kernel v4.10 with a config that is somewhat optimized for the Chromebook Pixel 2015.

As of v4.9 there is no need to patch the kernel sources to get sound support.

Current kernel version: v4.16.13

Installation

The easiest way to get going is to install the packages if you are running Ubuntu, Debian or Arch Linux.

Ubuntu / Debian

$ git clone --depth=1 https://github.com/raphael/linux-samus
$ cd linux-samus/build/debian
$ sudo dpkg -i *.deb

Arch Linux

Install the linux-samus4 package from the AUR:

$ yaourt -S linux-samus4

Other distributions

The entire kernel patched tree is located under build/linux, compile and install using the usual instructions for installing kernels. For example:

$ git clone --depth=1 https://github.com/raphael/linux-samus
$ cd linux-samus/build/linux
$ make nconfig
$ make -j4
$ sudo make modules_install
$ sudo make install

NOTE the steps above are just the standard kernel build steps and may differ depending on your distro/setup.

Post-install steps

Once installed reboot and load the kernel.

Sound

Setup

The scripts needed to enable audio and switch between the speakers and headphones are provided in the scripts/setup/audio folder.

  • Enable audio: scripts/setup/audio/enable-audio.sh
  • Switch to speakers: scripts/setup/audio/enable-speakers.sh
  • Switch to headphones: scripts/setup/audio/enable-headphones.sh
  • Toggle mute: scripts/setup/audio/mute-toggle.sh
  • Decrease volume: scripts/setup/audio/volume-down.sh
  • Increase volume: scripts/setup/audio/volume-up.sh

Users upgrading from pre-4.7 Samus kernel

To get sound working, you must unwind some of the previous samus sound settings:

  1. edit the file /etc/pulse/default.pa and ensure these lines are commentted out:
#load-module module-alsa-sink device=hw:0,0
#load-module module-alsa-source device=hw:0,1
#load-module module-alsa-source device=hw:0,2
  1. remove the following folders: /opt/samus and /usr/share/alsa/ucm/bdw-rt5677
  2. edit the file /etc/acpi/handler.sh and remove any samus entries

NOTE: settings to toggle headphone/speaker during plug) and unplug) events still need to be implemented.

Touchpad

Since Linux 4.3 the Atmel chip needs to be reconfigured to guarantee that the touchpad works. See issue #73 for details. The linux-samus/scripts/setup/touchpad directory contains a script that does the reconfig:

$ cd linux-samus/scripts/setup/touchpad
$ ./enable-atmel.sh

This is only needed to be run once.

Keyboard

Chrome OS sets up a number of useful key mappings, such as:

  • Home = Search + left arrow
  • End = Search + right arrow
  • PgUp = Search + up arrow
  • PgDn = Search + down arrow
  • Delete = Search + backspace

The keyboard.sh script will enable these mappings under standard Linux, and it will also set up mappings for special functions that do not exist on a standard 101-key PC keyboard:

  • Back = Search + F1
  • Forward = Search + F2
  • Reload = Search + F3
  • BrightnessDown = Search + F6
  • BrightnessUp = Search + F7
  • VolumeMute = Search + F8
  • VolumeDown = Search + F9
  • VolumeUp = Search + F10

i.e. the Chromebook's F-keys will produce F1-F10 without the Search modifier, and perform the marked functions with the Search modifier. F1-F3 can be handled by apps (such as a web browser) while F6-F10 tend to be handled by the desktop environment. The latter keys were tested with Xfce.

This will add a command to ~/.xsessionrc that enables the mappings on login:

$ cd linux-samus/scripts/setup/keyboard
$ ./keyboard.sh

Xorg

To enable X11 acceleration run the xaccel.sh script:

$ cd linux-samus/scripts/setup/xorg
$ ./xaccel.sh

Brightness

The script scripts/setup/brightness/brightness can be used to control the brightness level.

$ cd scripts/setup/brightness
$ ./brightness --help
Increase or decrease screen brightness
Usage: brightness --increase | --decrease

Put scripts/setup/brightness in your path and bind the F6 key to brightness --decrease and the F7 key to brightness --increase for an almost native experience.

Similarly the script script/setup/brightness/keyboard_led can be used to control the keyboard backlight, bind the ALT-F6 key to keyboard_led --decrease and ALT-F7 to keyboard_led --increase.

Both these scripts require write access to files living under /sys which get mounted read-only for non-root users on boot by default. If your system uses systemd (e.g. ArchLinux) then the file script/setup/brightness/enable-brightness.service contains the definition for a systemd service that makes the files above writable to non-root user. Run systemctl enable enable-brightness.service for the service to run on boot.

systemd
./setup.systemd.sh

The same directory also contains setup.systemd.sh. When executed, it copies scripts to /usr/local/bin and configures systemd to run the script enable-brightness.sh on boot.

OpenRC
./setup.openrc.sh

The same directory also contains setup.openrc.sh. When executed, it copies scripts to /usr/local/bin and configures OpenRC to run the script enable-brightness.sh on boot using the local service.

Contributions

This repo exists so that we can all benefit from one another's work. Thomas Sowell's linux-samus repo was both an inspiration and help in building it. The hope is that others (you) will also feel inspired and contribute back. PRs are encouraged!

linux-samus's People

Contributors

chrisrossx avatar christianbundy avatar colemickens avatar cowlicks avatar ehegnes avatar ethanmad avatar jonkirkman avatar nelsonni avatar nickjwhite avatar pierrechevalier83 avatar raphael avatar recri avatar remexre avatar robinm8 avatar sprc avatar twoscomplement avatar wulvyrn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linux-samus's Issues

video debian jessie

This is not an issue with the kernel, but it may provide a bad user experience to those of us that use debian, just to let you know that the default package xserver-xorg-video-intel is too old and doesn't have support for our graphics, so in the gnome details is shown as gallium graphic driver. To solve this problem use the following instruction to upgrade, and you will see a huge difference in performance with videos.

add this to your sources.list:
deb http://http.debian.net/debian jessie-backports main

and install the package:
apt-get -t jessie-backports install "xserver-xorg-video-intel"

sorry if this is not the way to report this...

Boot hangs on "Loading initial ramdisks"

Hi,
After pulling the master branch and installing *.deb's I rebooted and it hung with the message on the top right of "loading initial ramdisks". I see the same messages for a second when booting using the generic 4.1rc8 kernels but it boots just fine.

Not sure how to troubleshoot but I can investigate further with some direction.

Thanks

hdmi adpater

has anyone tried the hdmi adpter, recently I bought one but it seems that is not working correctly, sometimes it dosent detect the external screen, first it falshes the pixel screen then it keeps black, I have to go to a tty and the images on the screen come back, but the external keeps saying not signal, other it seems getting the wrong resolution the external screen, and the pixel screen keeps black, I have to put the pixel screen as secondary to get it working. Here are some of the errors:

[ 15.428569] [drm:intel_dp_complete_link_train [i915]] ERROR failed to train DP, aborting
[ 19.734094] rt5677 i2c-RT5677CE:00: DSP VAD: enable=0, activity=1
[ 32.951457] [drm:intel_dp_complete_link_train [i915]] ERROR failed to train DP, aborting
[ 104.736914] [drm:intel_dp_complete_link_train [i915]] ERROR failed to train DP, aborting
[ 730.540416] Raw EDID:
[ 730.540422] 5a ff ff ff 10 60 04 c0 e7 7f bf ff 08 00 00 40
[ 730.540423] f6 fb 7e c7 00 00 84 00 ff fe ff ff 20 01 01 00
[ 730.540424] ff ff ff 7e 01 00 00 08 ff ff ef ff 2c 21 81 00
[ 730.540425] cf e7 6f ff 00 00 80 10 37 fd fd 77 80 00 0a 13
[ 730.540426] 4a ff ff ff 10 40 04 40 e5 7f bf ff 08 00 00 40
[ 730.540427] f6 fb 7f c6 00 04 94 00 ff fe ff ff 20 01 01 00
[ 730.540427] ff ff fd 7f 01 00 10 00 ff ff ef ff 28 21 80 01
[ 730.540428] cf e7 6f fd 00 00 80 10 37 ff fd 7f 80 20 0a 13
[ 730.556018] Raw EDID:
[ 730.556020] 5a ff ff ff 10 60 04 c0 e7 7f bf ff 08 00 00 40
[ 730.556021] f6 fb 7e c7 00 00 84 00 ff fe ff ff 20 01 01 00
[ 730.556022] ff ff ff 7e 01 00 00 08 ff ff ef ff 2c 21 81 00
[ 730.556023] cf e7 6f ff 00 00 80 10 37 fd fd 77 80 00 0a 13
[ 730.556024] 4a ff ff ff 10 40 04 40 e5 7f bf ff 08 00 00 40
[ 730.556025] f6 fb 7f c6 00 04 94 00 ff fe ff ff 20 01 01 00
[ 730.556026] ff ff fd 7f 01 00 10 00 ff ff ef ff 28 21 80 01
[ 730.556027] cf e7 6f fd 00 00 80 10 37 ff fd 7f 80 20 0a 13
[ 730.571636] Raw EDID:
[ 730.571639] 5a ff ff ff 10 60 04 c0 e7 7f bf ff 08 00 00 40
[ 730.571641] f6 fb 7e c7 00 00 84 00 ff fe ff ff 20 01 01 00
[ 730.571642] ff ff ff 7e 01 00 00 08 ff ff ef ff 2c 21 81 00
[ 730.571643] cf e7 6f ff 00 00 80 10 37 fd fd 77 80 00 0a 13
[ 730.571643] 4a ff ff ff 10 40 04 40 e5 7f bf ff 08 00 00 40
[ 730.571644] f6 fb 7f c6 00 04 94 00 ff fe ff ff 20 01 01 00
[ 730.571645] ff ff fd 7f 01 00 10 00 ff ff ef ff 28 21 80 01
[ 730.571646] cf e7 6f fd 00 00 80 10 37 ff fd 7f 80 20 0a 13
[ 730.587250] Raw EDID:
[ 730.587254] 5a ff ff ff 10 60 04 c0 e7 7f bf ff 08 00 00 40
[ 730.587255] f6 fb 7e c7 00 00 84 00 ff fe ff ff 20 01 01 00
[ 730.587256] ff ff ff 7e 01 00 00 08 ff ff ef ff 2c 21 81 00
[ 730.587257] cf e7 6f ff 00 00 80 10 37 fd fd 77 80 00 0a 13
[ 730.587258] 4a ff ff ff 10 40 04 40 e5 7f bf ff 08 00 00 40
[ 730.587259] f6 fb 7f c6 00 04 94 00 ff fe ff ff 20 01 01 00
[ 730.587259] ff ff fd 7f 01 00 10 00 ff ff ef ff 28 21 80 01
[ 730.587260] cf e7 6f fd 00 00 80 10 37 ff fd 7f 80 20 0a 13
[ 730.587264] i915 0000:00:02.0: DP-1: EDID block 0 invalid.
[ 735.479631] [drm:intel_dp_start_link_train [i915]] ERROR failed to enable link training
[ 735.482319] [drm:intel_dp_complete_link_train [i915]] ERROR failed to start channel equalization
[ 811.565707] haswell-pcm-audio haswell-pcm-audio: FW loaded, mailbox readback FW info: type 01, - version: 00.00, build 77, source commit id: 876ac6906f31a43b6772b23c7c983ce9dcb18a19

kernel doesn't boot

When I select this kernel in my grub Advanced Options it then shows

Loading Linux 4.1.0-rc8ph
Loading initial ramdisk...

and gets stuck on this.
I'm running Ubuntu 15.04 with a default disk encryption. These are the two settings I've changed in make nconfig - enabled swap and File Systems ---> <M> Ext4 Encryption. Any idea what the problem could be here? If it helps, Tom's kernel (https://github.com/tsowell/linux-samus) worked fine out of the box.

maxtouch.cfg

maybe it`s not a issue;
When i run dmesg;
There are some warnings
eg.
[ 1.301705] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7260-15.ucode failed with error -2
[ 1.301726] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7260-14.ucode failed with error -2
[ 1.369680] atmel_mxt_ts i2c-ATML0001:01: Direct firmware load for maxtouch.cfg failed with error -2

maybe it`s lack of drivers .

Failed to start Load Kernel Modules.

Reported in /var/log/boot.log, turns out to be

Aug 3 13:36:46 elf2015 systemd-modules-load[375]: Failed to find module 'lp'
Aug 3 13:36:46 elf2015 systemd-modules-load[375]: Failed to find module 'ppdev'
Aug 3 13:36:46 elf2015 systemd-modules-load[375]: Failed to find module 'parport_pc'

which are on somebody's too do list at Ubuntu.

They're force loaded in /etc/modules-load.d/cups-filters.conf, commenting them out there fixes the error until a new version of cups gets installed.

Camera not working

Hi, I've installed the patched kernel on my Pixel running Antergos with Gnome and everything's awesome but the camera does not work. Is there any fix for it yet?

For anyone else who's running Antergos and has suspend trouble - change your display manager from LightDM to GnomeDM and it works like a charm! :)

Cheers!

PS: I have an issue with Steam where I get an error saying:

"You are missing the following 32-bit libraries, and Steam may not run:
libc.so.6"

I've done some searching and reading around the Arch forums but I can't get it to work. If you can shed some insight on this, it would be much appreciated.

Enabling swap

I've been searching make nconfig but I can't find where to enable the swap (I need it for hibernation). How can I enable it?

Slackware dmesg error

I've been using Slackware since I got this laptop, and have everything working excluding sound, and some button issues. I used the kernel source you provided with a .config I was using for the vanilla 4.1 kernel, along with the bdw-rt5677 module. I copied the contents of firmware into /lib/firmware and /lib/firmware/intel just to make sure, and built the kernel along with modules. I was able to reboot and run just as I was before, but receive this dmesg error.

[ 0.695047] bdw-rt5677 bdw-rt5677: ASoC: CPU DAI spi-RT5677AA:00 not registered

aplay -l does not show the sound card for this reason, and I'm currently unable to determine why I receive that error.

Also want to note Slackware does not have pulse audio by default, from reading the page I only see it being required for the microphone.

chromeos sysfs entries

Various sources online indicate that in linux kernels >=4.1 have a sysfs entry implemented talking to the chromebook embedded controller, to control the lightbar, etc., at /sys/devices/virtual/chromeos/cros_ec/. I'm basing this on this patch on the mailing list.

However, these sysfs entries don't exist on my installation. Is this implemented in the kernel distributed in this repository? has anyone else got these sysfs entries or been able to control their lightbar using the 4.2 kernel from this repo? If yes, what do I need to do to enable/install these sysfs entries and/or is there a substitute for controlling the lightbar, etc.?

I am running Xubuntu 15.04 on a 2015 chromebook pixel LS, with the linux kernel from this repo. let me know if there's any outputs from my machine I should provide.

Thanks for any help!

No sound (Arch)

I'm using cc3badb on my Arch install. I have alsa-utils (includes alsaucm and amixer) and pulseaudio installed. I ran sound.sh and got the following output

Setting sound card UCM verb
Restoring alsa config
Sound setup completed successfully.

I noticed that the firmware did not get moved to /lib/firmware, so I did that myself and restarted pulseaudio. No luck. I added load-module module-alsa-sink device=hw:0,0 to default.pa. Rebooted. Still no sound.

[Arch] Bluetooth keyboards pair and connect, but do not type on keypress

Hi,

First of all I would like to express my deep gratitude for maintaining this kernel for the Pixel 2015. Thanks to you I am able to run Arch natively with the latest kernel on this fine machine. Thank you!

I have noticed that when booting Arch with the linux-4.1-samus kernel, my Bluetooth keyboard stops working. It pairs and connects without issues (using either bluetoothctl or the plasma 5.3 bluetooth wizard), but once connected, no input of the keyboard is registered by the system. I have tried this with my Apple bluetooth keyboard as well as with a generic keyboard I purchased for my tablet.

The reason why I think this might be related to the kernel is that when I start Arch with tsowell's 3.1 kernel, both, the Apple and the generic keyboard work as expected.

Any help with in regard to this matter would be highly appreciated. Since I have both kernels installed, I will gladly provide you with any information that might be required.

Thanks again!

Headphone volume too low?

Hi,

I'm not sure if this is an issue or not but I'm experiencing rather low volume when outputting sound through headphones even when pushing it beyond 100%. I'm running Antergos with Gnome 3.16.

Do you reckon there's anything that can be done to make the sound output louder?

Cheers

Sound issue

There was this issue before with headphone volume being low and left and right channels mixed up. I've just updated and compiled the kernel, ran sound.sh and the headphones seem to be working fine. However, now I have the exact same issue with laptop speakers - the volume on max is very quiet and left and right channels are mixed up. It was working fine before. A config issue maybe?

docker issues

Not sure if it has to do with how the kernel is configured.

Can someone running this kernel try the repro steps here? moby/moby#15070

Takes less than a minute. I'm not sure what else would be causing these issues.

Kernel Freeze on Boot (Ubuntu 14.04)

Trying to load the Ubuntu kernel (Samus hardware obviously), either using the deb packages or building it from the tree following the instructions, it seems to install fine, but when I try to boot it gets to the text: "Loading initial ramdisk" and apparently freezes. Ubuntu 14.04 LTS installed via chrubuntu scripts.

Not real sure what I can do to help with the troubleshooting at this point, any suggestions? I have seen reports that it is working fine with 15.04, but the chrubuntu scripts don't handle that install very well, and I would prefer the LTS anyways personally if possible, but if I need to I will try to install 15.04 via thumb drive to the partition.

Thanks very much for the help, and for the work in putting this together.

nconfig error

Hi, I'm running Mint 17.1 Cinnamon on my Pixel 2015 LS and I've updated my kernel to 4.1. I've had good luck with the Sowell patch, but I couldn't get my mic and camera to work so I was hoping this would help. When I try to run nconfig I always seem to get this error:
make nconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/nconf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTCC scripts/kconfig/nconf.gui.o
HOSTLD scripts/kconfig/nconf
scripts/kconfig/nconf Kconfig
drivers/net/ethernet/Kconfig:136: can't open file "drivers/net/ethernet/nvidia/Kconfig"
make[1]: *** [nconfig] Error 1
make: *** [nconfig] Error 2
How do I get around this? Sorry if I'm missing something obvious, I'm a bit of a newb.

Thanks, Simion

Cannot boot usb drive with linux-4.1-samus

I've tried to install ubuntu-15.04+linux-4.1-samus on three different usb drives. In each case, the initial 15.04 install boots, the 15.04 image boots after updating packages, but when the linux-4.1-samus packages have been installed the boot hangs.

I assume it's something to do with the stripped down config that the samus kernel runs, but I get 7362 lines of diff from comparing config-4.1* to config-3.19.0*.

makepkg -s fails on 4.1-6 release

$ pwd
 ~/Code/raphael/linux-4.1-samus/aur 

$ git rev-parse HEAD
fffcef62a9d32b5b98ac44fe288c443a3f6d3526

$ makepkg -s
==> Making package: linux-samus4 4.1-6 (Wed Jul  8 10:40:17 PDT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading v4.1-6.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   131    0   131    0     0    378      0 --:--:-- --:--:-- --:--:--   378
100  170M    0  170M    0     0  1703k      0 --:--:--  0:01:42 --:--:--  695k
  -> Found config
  -> Found linux.preset
==> Validating source files with md5sums...
    v4.1-6.tar.gz ... FAILED
    config ... FAILED
    linux.preset ... Passed
==> ERROR: One or more files did not pass the validity check!

Unable to use ethernet adapter

On tsowell's patches, I was able to use my ethernet usb adapter.

Now, with linux-4.1-samus, it is detected with libusb, but dmesg doesn't show an attempt to utilize it and it doesn't appear as a new networking device.

Under linux-samus, I got:

$ lsusb
...
Bus 001 Device 002: ID 0fe6:9700 Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter
...

$ dmesg
...
[  135.341069] usb 1-2: USB disconnect, device number 2
[  135.341212] dm9601 1-2:1.0 enp0s20u2: unregister 'dm9601' usb-0000:00:14.0-2, Davicom DM96xx USB 10/100 Ethernet
[  137.325641] usb 1-2: new full-speed USB device number 5 using xhci_hcd
[  137.514128] dm9601 1-2:1.0 eth0: register 'dm9601' at usb-0000:00:14.0-2, Davicom DM96xx USB 10/100 Ethernet, 00:e0:4c:53:44:58
[  137.524149] dm9601 1-2:1.0 enp0s20u2: renamed from eth0
[  137.583082] dm9601 1-2:1.0 enp0s20u2: link up, 100Mbps, full-duplex, lpa 0xFFFF

Under linux-4.1-samus I got:

$ lsusb
...
Bus 001 Device 005: ID 0fe6:9700 Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter
...

$ dmesg
...
[   88.632632] usb 1-1: USB disconnect, device number 5
[   92.268112] usb 1-1: new full-speed USB device number 6 using xhci_hcd
...

Xorg hangs after several secs

I have regular Pixel 2015 and Arch linux installed on internal SSD. Tsowell kernel works OK, but with this kernel Xorg hangs within 10 seconds of starting it. What can be the source of this problem?

Sound not working in Ubuntu 15.04

Hi,

As the title says, I have not been able to get audio to work in Ubuntu 15.04. I first had the problem in xubuntu 15.04, and figured i'd try straight ubuntu for giggles but no luck. I am getting the same output from sound.sh as is described in #13 , but my problem appears to be different. I have also tried the step-by-step audio configuration but I can never get ubuntu to admit that the audio interface exists for it to use. Sound does work in chromeos though, so it isn't hardware failure.

gordo@decoy:~/linux-samus/scripts/setup$ ./sound.sh
Setting sound card UCM verb
ALSA lib main.c:273:(execute_sequence) unable to open ctl device 'hw:bdwrt5677'
ALSA lib main.c:1475:(set_verb_user) error: failed to initialize new use case: HiFi
alsaucm: error failed to set _verb=HiFi: No such device
!!Failed to set UCM verb, make sure 'alsaucm' is installed
gordo@decoy:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
gordo@decoy:~$ lsmod | grep bdw
gordo@decoy:~$ 
gordo@decoy:~$ alsaucm listcards
  0: DAISY-I2S
    Daisy internal card
  1: Manta-I2S
  2: Manta-SPDIF
  3: PandaBoard
  4: PandaBoardES
  5: SDP4430
  6: Tuna
  7: apq8064-tabla-snd-card
  8: tegra-rt5640
  9: tegraalc5632

I'm stumped. Either it's impossible, or its something stupid I overlooked and now I'm just frazzled after dealing with this for two days. lets hope it's the latter!

Thanks in advance for any help. Let me know if there's any other output I should post.

Module `vboxdrv` not found.

Hello, I am attempting to set up VirtualBox on my machine, but I am encountering this.

# modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found.

So, when starting virtualbox, I get:

$ virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module 
available for the current kernel (4.1.5-12ph) or it failed to
load. Please reinstall the kernel module virtualbox-host-modules or
if you don't use our stock kernel compile the modules with

sudo dkms autoinstall

You will not be able to start VMs until this problem is fixed.
VirtualBox: supR3HardenedMainGetTrustedMain:
dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed:
libQtCore.so.4: cannot open shared object file: No such file or directory.

Currently on release 4.1-12.
I have spent some time looking this up but nothing seems applicable. They often refer to logs / steps that are very Ubuntu-specific. None seem to be particularly relevant. I also vaguely seem to remember reading that virtualization on the CB Pixel on Linux might run into some issues, but now I can't find the source. This makes me think the issue is platform-specific, but please tell me if you think that is not the case.
I found this, but I thought I should bring it up here before attempting that.
Unfortunately, classes are about to start and I am a little more paranoid than usual about messing my machine up.
Thanks so much for your time and work thus far on making this custom kernel. I thought I would report early, and if the solution is not clear right away, I will of course continue to look this up on my own.

i915 DRM Bug

Hi raphael,

Thanks for the lovely work you've been doing on the kernel. So far most everything is working well.

I've encountered an interesting kernel (4.1.5ph+) bug after getting a 4K monitor (Dell P2715Q A02 connected with the Google USB-C Displayport cable). When set to 4K/60Hz resolution everything seems to work fine, however on random occasions, I am get the following error message (dmesg) and my screen goes blank:

[13295.335556] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] ERROR CPU pipe A FIFO underrun

The interesting thing is that the error seems to be triggered when:

  • using Chrome browser.
  • using Firefox on some web-pages (i.e. http://synchronybank.com/): By closing or switching tabs or minimizing Firefox, the screen comes back.
  • when R-Studio finishes loading.

It almost seems like specific set or type of HTML triggers a kernel Displayport bug when the monitor resolution is set to 4K. Weird right?

Cheers,
Roberto

Sound not Working

lsmod | grep snd_core This returned nothing, just dropped back to a prompt.

root@pixel# lsmod | grep snd_core
root@pixel# aplay -l
*** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: bdwrt5677 [bdw-rt5677], device 0: System Playback (
) []
Subdevices: 0/1
Subdevice #0: subdevice #0

I tried some other outputs if any of this helps?

find / -name snd_soc_sst_bdw_rt5677_mach
/sys/module/snd_soc_rt5677/holders/snd_soc_sst_bdw_rt5677_mach
/sys/module/snd_soc_core/holders/snd_soc_sst_bdw_rt5677_mach
/sys/module/snd_soc_sst_haswell_pcm/holders/snd_soc_sst_bdw_rt5677_mach
/sys/module/snd_soc_sst_bdw_rt5677_mach

lsmod | grep snd_soc_core
snd_soc_core 127971 6 snd_soc_rt5677,snd_soc_rt5677_spi,snd_soc_sst_haswell_pcm,snd_soc_sst_bdw_rt5677_mach
snd_compress 10891 1 snd_soc_core
snd_pcm 70533 10 snd_soc_rt5677,snd_pcm_oss,snd_soc_rt5677_spi,snd_soc_core,snd_hda_codec_hdmi,snd_soc_sst_haswell_pcm,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd 54617 20 snd_pcm_oss,snd_soc_core,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_oss,snd_seq_device,snd_compress,snd_mixer_oss

alsamixer has master:100% Headphone(can't click enter on this) Speaker (can't click enter on this) and sidetone:100%

I paired some bluetooth headphones, which does give me sound, so using them for now.

Failure to boot kernel

I'm running currently on debian testing on a pixel 2 LS. I installed the packages in build/debian, rebooted. But when I select the new kernel, I just get a black screen, no response from anything at all.

My drive is encrypted, which may be effecting things.

Audio no working in debian 8

Hi I have been running some test in debian after installing the last version, but something seems to be missing. First I tried running the audio setup manual but the first command return the following error:

ALSA lib main.c:273:(execute_sequence) unable to open ctl device 'hw:bdwrt5677'
ALSA lib main.c:1475:(set_verb_user) error: failed to initialize new use case: HiFi
alsaucm: error failed to set _verb=HiFi: No such device

I tried to list the cards available:

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0

check about the modules been loaded:

lsmod | grep bdw
snd_soc_sst_bdw_rt5677_mach 7593 0
snd_soc_sst_haswell_pcm 44737 1 snd_soc_sst_bdw_rt5677_mach
snd_soc_rt5677 163345 1 snd_soc_sst_bdw_rt5677_mach
snd_soc_core 127931 4 snd_soc_rt5677,snd_soc_rt5677_spi,snd_soc_sst_haswell_pcm,snd_soc_sst_bdw_rt5677_mach

then I got a little confused here, when I run alsaucm the card seems to be present ?

alsaucm listcards
0: DAISY-I2S
Daisy internal card
1: Manta-I2S
2: Manta-SPDIF
3: PandaBoard
4: PandaBoardES
5: SDP4430
6: Tuna
7: apq8064-tabla-snd-card
8: bdw-rt5677
Samus internal card
9: tegra-rt5640
10: tegraalc5632

I tried openening the card conf like following:
alsaucm open bdw-rt5677
and it shows no error

by the way the output of the script sound.sh is :

./sound.sh
Setting sound card UCM verb
No protocol specified
xcb_connection_has_error() returned true
ALSA lib main.c:273:(execute_sequence) unable to open ctl device 'hw:bdwrt5677'
ALSA lib main.c:1475:(set_verb_user) error: failed to initialize new use case: HiFi
alsaucm: error failed to set _verb=HiFi: No such device
!!Failed to set UCM verb, make sure 'alsaucm' is installed

enable-brightness.sh not found

script/setup/enable-brightness.service references /usr/local/bin/enable-brightness.sh, which does not appear to exist.

no joystick support

Why did you disable joystick support in your "optimized" kernel? It did not make the kernel run faster, and I wasted a day figuring out why none of the online tutorials for enabling a joystick worked.

diff .config.old .config
2015c2015
< # CONFIG_INPUT_JOYDEV is not set

---
> CONFIG_INPUT_JOYDEV=m
2017c2017
< # CONFIG_INPUT_EVBUG is not set

---
> CONFIG_INPUT_EVBUG=m
2057,2058c2057,2094
< # CONFIG_INPUT_JOYSTICK is not set
< # CONFIG_INPUT_TABLET is not set

---
> CONFIG_INPUT_JOYSTICK=y
> CONFIG_JOYSTICK_ANALOG=m
> CONFIG_JOYSTICK_A3D=m
> CONFIG_JOYSTICK_ADI=m
> CONFIG_JOYSTICK_COBRA=m
> CONFIG_JOYSTICK_GF2K=m
> CONFIG_JOYSTICK_GRIP=m
> CONFIG_JOYSTICK_GRIP_MP=m
> CONFIG_JOYSTICK_GUILLEMOT=m
> CONFIG_JOYSTICK_INTERACT=m
> CONFIG_JOYSTICK_SIDEWINDER=m
> CONFIG_JOYSTICK_TMDC=m
> CONFIG_JOYSTICK_IFORCE=m
> CONFIG_JOYSTICK_IFORCE_USB=y
> CONFIG_JOYSTICK_IFORCE_232=y
> CONFIG_JOYSTICK_WARRIOR=m
> CONFIG_JOYSTICK_MAGELLAN=m
> CONFIG_JOYSTICK_SPACEORB=m
> CONFIG_JOYSTICK_SPACEBALL=m
> CONFIG_JOYSTICK_STINGER=m
> CONFIG_JOYSTICK_TWIDJOY=m
> CONFIG_JOYSTICK_ZHENHUA=m
> CONFIG_JOYSTICK_DB9=m
> CONFIG_JOYSTICK_GAMECON=m
> CONFIG_JOYSTICK_TURBOGRAFX=m
> CONFIG_JOYSTICK_AS5011=m
> CONFIG_JOYSTICK_JOYDUMP=m
> CONFIG_JOYSTICK_XPAD=m
> CONFIG_JOYSTICK_XPAD_FF=y
> CONFIG_JOYSTICK_XPAD_LEDS=y
> CONFIG_JOYSTICK_WALKERA0701=m
> CONFIG_INPUT_TABLET=y
> CONFIG_TABLET_USB_ACECAD=m
> CONFIG_TABLET_USB_AIPTEK=m
> CONFIG_TABLET_USB_GTCO=m
> CONFIG_TABLET_USB_HANWANG=m
> CONFIG_TABLET_USB_KBTAB=m
> CONFIG_TABLET_SERIAL_WACOM4=m
2165c2201,2205
< # CONFIG_GAMEPORT is not set

---
> CONFIG_GAMEPORT=m
> # CONFIG_GAMEPORT_NS558 is not set
> # CONFIG_GAMEPORT_L4 is not set
> # CONFIG_GAMEPORT_EMU10K1 is not set
> # CONFIG_GAMEPORT_FM801 is not set

Build failed when installing from AUR

Hi,
I just tried to update the kernel via yaourt and I am getting the following error message:

==> Continue building linux-samus4 ? [Y/n]
==> --------------------------------------
==> 
==> Building and installing package
==> This PKGBUILD provides " linux-samus4 linux-samus4-headers linux-samus4-docs "
==> Install only linux-samus4 ? [Y/n]
==> ---------------------------------
==> 
==> Making package: linux-samus4 4.2-2 (Fri Sep 18 01:23:22 EDT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading v4.2-2.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   127    0   127    0     0   1161      0 --:--:-- --:--:-- --:--:--  1165
100  177M    0  177M    0     0  2606k      0 --:--:--  0:01:09 --:--:-- 1920k
  -> Found config
  -> Found linux.preset
==> Validating source files with md5sums...
    v4.2-2.tar.gz ... FAILED
    config ... Passed
    linux.preset ... Passed
==> ERROR: One or more files did not pass the validity check!
==> ERROR: Makepkg was unable to build linux-samus4.

I am guessing that this might be easily fixed by adding the correct checksum to the PKGBUILD? I would do it myself but unfortunately I do not have any experience in that matter.
Thanks!

Volume Bug

The sound volume is very low. I found a temporary solution: using the QasMixer, I am able to set the "hw master" volume from zero to 30. Afterward the "default master" volume is reset to "normal" and I can adjust as desired. However, the problem is that every time I plug/unplug the headphones, lock/sleep the laptop or reboot, the volume is reset back to very low again and I have to go through the same steps again. It would be great if the volume setting was remembered.

Cheers,
Roberto

Microphone is not working

I followed the instructions of editing /etc/pulse/default.pa and now I can see the microphone in pavucontrol as bdw-rt5677, but it doesn't work. Not sure if this is OS specific (I'm on Ubuntu 15.04) or if it's still a kernel issue. By the way, the situation is exactly the same with Tom's kernel too.

system freezes after 4.2 upgrade

I start to notice that my system would stop responding (except for mouse movement) a couple of times after the 4.2 upgrade. Cannot access anything else since keyboard was not responding. I wonder if anyone else has the same problem?

Sound not working on Debian Jessie

After installing the Debian packages, I restarted to find that both my touchpad and wireless card were working, which was fantastic. Unfortunately, my sound isn't working.

$ ./sound.sh
Setting sound card UCM verb
ALSA lib main.c:273:(execute_sequence) unable to open ctl device 'hw:bdwrt5677'
ALSA lib main.c:1475:(set_verb_user) error: failed to initialize new use case: HiFi
alsaucm: error failed to set _verb=HiFi: No such device
!!Failed to set UCM verb, make sure 'alsaucm' is installed

I thought that I might be having the same problem as #42, but was able to confirm that I'm running the correct kernel (I think).

$ uname -a
Linux cinco 4.2.4ph+ #1 SMP Fri Oct 23 16:00:38 PDT 2015 x86_64 GNU/Linux

It looks like the card isn't listed by ALSA either.

$ alsaucm listcards
  0: DAISY-I2S
    Daisy internal card
  1: Manta-I2S
  2: Manta-SPDIF
  3: PandaBoard
  4: PandaBoardES
  5: SDP4430
  6: Tuna
  7: apq8064-tabla-snd-card
  8: tegra-rt5640
  9: tegraalc5632

Checking dmesg, I found an error that I'm unsure what to do with.

$ dmesg | grep bdw
[   18.414457] bdw-rt5677 bdw-rt5677: ASoC: CPU DAI System Pin not registered
[   19.601326] bdw-rt5677 bdw-rt5677: ASoC: CPU DAI System Pin not registered
[   19.714348] bdw-rt5677 bdw-rt5677: ASoC: CPU DAI System Pin not registered

Covering all my bases, I checked in /dev/snd too.

$ ls -l /dev/snd
total 0
drwxr-xr-x  2 root root       60 Oct 24 11:01 by-path
crw-rw----+ 1 root audio 116,  2 Oct 24 11:01 controlC1
crw-rw----+ 1 root audio 116,  6 Oct 24 11:01 hwC1D0
crw-rw----+ 1 root audio 116,  3 Oct 24 11:19 pcmC1D3p
crw-rw----+ 1 root audio 116,  4 Oct 24 11:02 pcmC1D7p
crw-rw----+ 1 root audio 116,  5 Oct 24 11:02 pcmC1D8p
crw-rw----+ 1 root audio 116,  1 Oct 24 11:01 seq
crw-rw----+ 1 root audio 116, 33 Oct 24 11:01 timer

Thinking that this was a dupe of #13, I tried echo "load-module module-alsa-sink device=hw:0,0" >> /etc/pulse/default.pa but after rebooting I wasn't able to use my audio. Strangely (and potentially coincidentally), having that line added made my cursor move around erratically, even when my hand was off the touchpad. Weird, right?

Again, thanks a ton for your work on this project, and let me know if there's anything I can do to make this easier to debug. I'll submit a PR after I get this working. Cheers!

Touchscreen isn't working with the latest kernel

Hi,

After updating to the latest kernel, the touch capabilities of the screen have stopped.

I'm running Antergos with Gnome 3.16 if that's of any help. I installed the kernel by cloning the repo. Currently compiling from the AUR and will report with results later.

UPDATE: After installing from AUR, it seems like touchscreen is restored.. I don't have any idea what could have caused this.

No microphone after 4.2 update

Hi,

I noticed that the microphone stopped working after updating to the 4.2 branch (I am on Arch). Before I start looking into this, would it be possible for you to check this on your setup? Pavucontrol shows 2 Input Devices, both named bdw-rt5677 but the bar indicator stays completely silent. aplay -l shows the following:

**** List of PLAYBACK Hardware Devices ****
card 0: bdwrt5677 [bdw-rt5677], device 0: System Playback (*) []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Thank your and sorry for opening another ticket.

Privacy Light does not turn on when using webcam

Wouldn't have thought this was possible, but the privacy light doesn't activate when using the webcam.

I guess I'm assuming there's a privacy light. I remember it on the original model, I assume there's one on the 2015 model as well.

Cannot install from AUR - md5sum issue

pacaur gives me:

:: Checking linux-samus4,linux-samus4-docs,linux-samus4-headers integrity...
==> Making package: linux-samus4 4.2-1 (Tue Sep  1 10:42:24 PDT 2015)
==> Retrieving sources...
  -> Found v4.2-1.tar.gz
  -> Found config
  -> Found linux.preset
==> Validating source files with md5sums...
    v4.2-1.tar.gz ... FAILED
    config ... Passed
    linux.preset ... Passed
==> ERROR: One or more files did not pass the validity check!
...
:: failed to verify linux-samus4,linux-samus4-docs,linux-samus4-headers integrity

The update is aborted after the last line. This is a new issue with 4.2-1.

Steam Broken

Saw another person mention this so thought I'd start a new topic.

If I boot into 4.1 generic steam works fine, if I boot into 4.1-samus I get the following:

"You are missing the following 32-bit libraries, and Steam may not run:
libc.so.6"

Missing module or library path maybe?

debian binary not working

Hi,

I have tried the latest binary on debian 8, but it will not boot, after the grub screen, it freeze at loading ramdisk ...

I will try running the script to generate my on patch ...

Error on compilation (soc-generic-dmaengine-pcm.c)

CC [M] sound/soc/soc-generic-dmaengine-pcm.o
sound/soc/soc-generic-dmaengine-pcm.c:330:3: error: unknown field ‘probe_order’ specified in initializer
.probe_order = SND_SOC_COMP_ORDER_LATE,
^
sound/soc/soc-generic-dmaengine-pcm.c:330:3: warning: initialization makes pointer from integer without a cast
sound/soc/soc-generic-dmaengine-pcm.c:330:3: warning: (near initialization for ‘dmaengine_pcm_platform.component_driver.name’)
scripts/Makefile.build:258: recipe for target 'sound/soc/soc-generic-dmaengine-pcm.o' failed
make[2]: *** [sound/soc/soc-generic-dmaengine-pcm.o] Error 1
scripts/Makefile.build:403: recipe for target 'sound/soc' failed
make[1]: *** [sound/soc] Error 2
Makefile:946: recipe for target 'sound' failed
make: *** [sound] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.