https://wiki.archlinux.org/api.php?action=feedcontributions&user=Maccyber&feedformat=atomArchWiki - User contributions [en]2024-03-29T11:46:07ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Talk:Lenovo_ThinkPad_X1_Extreme&diff=565225Talk:Lenovo ThinkPad X1 Extreme2019-01-29T16:26:09Z<p>Maccyber: Signed</p>
<hr />
<div>== Expansion ==<br />
<br />
'''Stuff that I think should be added over time (I did not find solutions for it so far):'''<br />
<br />
How to automatically enable the keyboard backlight on boot,<br />
<br />
How to turn off the keyboard backlight after x inactivity time,<br />
<br />
[[User:Utini2000|Utini2000]] ([[User talk:Utini2000|talk]]) 18:51, 29 December 2018 (UTC)<br />
<br />
:To do it programmatically try:<br />
: echo 1 | sudo tee /sys/class/leds/tpacpi::kbd_backlight/brightness<br />
: echo 0 | sudo tee /sys/class/leds/tpacpi::kbd_backlight/brightness<br />
<br />
:You can also use {{ic|Fn+Space}} to toggle keyboard backlight<br />
:[[User:maccyber|maccyber]] ([[User talk:maccyber|talk]]) 16:25, 29 January 2019 (UTC)<br />
<br />
== Other Issues ==<br />
<br />
I've had to use a few other workarounds from those listed on the page due to various issues, but don't want to add them unless someone else can confirm they've also encountered them. <br />
<br />
* console mode needs to be set by systemd-boot to either {{ic|0}} or {{ic|1}} or occasionally the luks prompt will not be displayed. I wonder if this isn't fixed with the {{ic|0.1.18}} bios update. will test.<br />
* the system cannot resume from hibernate if the dGPU was in use when hibernating. <br />
* wireless sometimes is unable to connect to certain AP's, I have been unsuccessful in finding either the cause or a solution. <br />
[[User:Jshap70|Jshap70]] ([[User talk:Jshap70|talk]]) 01:12, 22 January 2019 (UTC)<br />
<br />
:I'm definitely not having the dGPU state thing, what BIOS version are you on? <br />
:[[User:K900|K900]] ([[User talk:K900|talk]]) 19:13, 22 January 2019 (UTC)<br />
<br />
::So I think I was over-diagnosing the problem, and therefore carrying over solutions to problems that no longer exist... I updated the comment above with my updated understanding of the problems. <br />
::I'm on {{ic|0.1.17}} fwiw.<br />
::[[User:Jshap70|Jshap70]] ([[User talk:Jshap70|talk]]) 22:17, 24 January 2019 (UTC)<br />
<br />
:::So the issue is with resuming from hibernate in Nvidia-only mode? I should probably try to reproduce this and see if it's worth including on the page<br />
:::[[User:K900|K900]] ([[User talk:K900|talk]]) 14:45, 25 January 2019 (UTC)<br />
<br />
::::Small clarification: bios is set to hybrid graphics, what I meant with "using the dGPU for X11" it's just that I'm using nvidia-xrun. It's possible this is just a tooling issue and not a hardware one though.<br />
::::[[User:Jshap70|Jshap70]] ([[User talk:Jshap70|talk]]) 18:57, 26 January 2019 (UTC)<br />
<br />
:::::So it resumes fine when the dGPU is not in use, but fails to resume if the GPU was in use when hibernating?<br />
:::::[[User:K900|K900]] ([[User talk:K900|talk]]) 20:11, 26 January 2019 (UTC)<br />
<br />
::::::Yep, seems to be exactly that. Just tried it with {{ic|bumblebee}} and {{ic|glxgears}} and it also failed to start back up. <br />
::::::[[User:Jshap70|Jshap70]] ([[User talk:Jshap70|talk]]) 20:20, 26 January 2019 (UTC)<br />
<br />
:::::::Interesting. I'll try to repro tomorrow on 1.18 then.<br />
:::::::[[User:K900|K900]] ([[User talk:K900|talk]]) 20:21, 26 January 2019 (UTC)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Talk:Lenovo_ThinkPad_X1_Extreme&diff=565209Talk:Lenovo ThinkPad X1 Extreme2019-01-29T09:18:59Z<p>Maccyber: Answered backlight question</p>
<hr />
<div>== Expansion ==<br />
<br />
'''Stuff that I think should be added over time (I did not find solutions for it so far):'''<br />
<br />
How to automatically enable the keyboard backlight on boot,<br />
<br />
How to turn off the keyboard backlight after x inactivity time,<br />
<br />
[[User:Utini2000|Utini2000]] ([[User talk:Utini2000|talk]]) 18:51, 29 December 2018 (UTC)<br />
<br />
To do it programmatically try:<br />
echo 1 | sudo tee /sys/class/leds/tpacpi::kbd_backlight/brightness<br />
echo 0 | sudo tee /sys/class/leds/tpacpi::kbd_backlight/brightness<br />
<br />
You can also use {{ic|Fn+Space}} to toggle backlight<br />
<br />
== Other Issues ==<br />
<br />
I've had to use a few other workarounds from those listed on the page due to various issues, but don't want to add them unless someone else can confirm they've also encountered them. <br />
<br />
* console mode needs to be set by systemd-boot to either {{ic|0}} or {{ic|1}} or occasionally the luks prompt will not be displayed. I wonder if this isn't fixed with the {{ic|0.1.18}} bios update. will test.<br />
* the system cannot resume from hibernate if the dGPU was in use when hibernating. <br />
* wireless sometimes is unable to connect to certain AP's, I have been unsuccessful in finding either the cause or a solution. <br />
[[User:Jshap70|Jshap70]] ([[User talk:Jshap70|talk]]) 01:12, 22 January 2019 (UTC)<br />
<br />
:I'm definitely not having the dGPU state thing, what BIOS version are you on? <br />
:[[User:K900|K900]] ([[User talk:K900|talk]]) 19:13, 22 January 2019 (UTC)<br />
<br />
::So I think I was over-diagnosing the problem, and therefore carrying over solutions to problems that no longer exist... I updated the comment above with my updated understanding of the problems. <br />
::I'm on {{ic|0.1.17}} fwiw.<br />
::[[User:Jshap70|Jshap70]] ([[User talk:Jshap70|talk]]) 22:17, 24 January 2019 (UTC)<br />
<br />
:::So the issue is with resuming from hibernate in Nvidia-only mode? I should probably try to reproduce this and see if it's worth including on the page<br />
:::[[User:K900|K900]] ([[User talk:K900|talk]]) 14:45, 25 January 2019 (UTC)<br />
<br />
::::Small clarification: bios is set to hybrid graphics, what I meant with "using the dGPU for X11" it's just that I'm using nvidia-xrun. It's possible this is just a tooling issue and not a hardware one though.<br />
::::[[User:Jshap70|Jshap70]] ([[User talk:Jshap70|talk]]) 18:57, 26 January 2019 (UTC)<br />
<br />
:::::So it resumes fine when the dGPU is not in use, but fails to resume if the GPU was in use when hibernating?<br />
:::::[[User:K900|K900]] ([[User talk:K900|talk]]) 20:11, 26 January 2019 (UTC)<br />
<br />
::::::Yep, seems to be exactly that. Just tried it with {{ic|bumblebee}} and {{ic|glxgears}} and it also failed to start back up. <br />
::::::[[User:Jshap70|Jshap70]] ([[User talk:Jshap70|talk]]) 20:20, 26 January 2019 (UTC)<br />
<br />
:::::::Interesting. I'll try to repro tomorrow on 1.18 then.<br />
:::::::[[User:K900|K900]] ([[User talk:K900|talk]]) 20:21, 26 January 2019 (UTC)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=PulseAudio&diff=523134PulseAudio2018-05-25T19:47:09Z<p>Maccyber: Adds dependency pulseaudio-zeroconf to airplay config</p>
<hr />
<div>[[Category:Sound]]<br />
[[cs:PulseAudio]]<br />
[[es:PulseAudio]]<br />
[[fr:PulseAudio]]<br />
[[it:PulseAudio]]<br />
[[ja:PulseAudio]]<br />
[[pt:PulseAudio]]<br />
[[ru:PulseAudio]]<br />
[[zh-hans:PulseAudio]]<br />
{{Related articles start}}<br />
{{Related|PulseAudio/Examples}}<br />
{{Related|PulseAudio/Troubleshooting}}<br />
{{Related articles end}}<br />
[[Wikipedia:PulseAudio|PulseAudio]] PulseAudio is a general purpose sound server intended to run as a middleware between your applications and your hardware devices, either using [[ALSA]] or [[OSS]]. It also offers easy network streaming across local devices using [[Avahi]] if enabled. While its main purpose is to ease audio configuration, its modular design allows more advanced users to configure the daemon precisely to best suit their needs.<br />
<br />
{{Note|Some confusion may occur between [[ALSA]] and PulseAudio. ALSA includes a Linux kernel component with sound card drivers, as well as a userspace component, {{ic|libalsa}}.[http://www.alsa-project.org/main/index.php/Download] PulseAudio builds only on the kernel component, but offers compatibility with {{ic|libalsa}} through {{Pkg|pulseaudio-alsa}}.[http://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/#index14h3]}}<br />
<br />
== Installation ==<br />
<br />
[[Install]] the {{Pkg|pulseaudio}} package.<br />
<br />
{{Note|Some PulseAudio modules have been [https://www.archlinux.org/news/pulseaudio-split/ split] from the main package and must be installed separately if needed.}}<br />
<br />
* For PulseAudio to manage [[ALSA]] as well, install the {{Pkg|pulseaudio-alsa}} package, see [[#ALSA]].<br />
* For [[bluetooth]] support (Bluez), install the {{Pkg|pulseaudio-bluetooth}} package, see [[bluetooth headset]] page.<br />
* For equalizer sink (qpaeq), install the {{Pkg|pulseaudio-equalizer}} package.<br />
* For GConf support (paprefs), install the {{Pkg|pulseaudio-gconf}} package.<br />
* For [[JACK]] sink, source and jackdbus detection, install the {{Pkg|pulseaudio-jack}} package.<br />
* For infrared (LIRC) volume control, install the {{Pkg|pulseaudio-lirc}} package.<br />
* For Zeroconf ([[Avahi]]/DNS-SD) support, install the {{Pkg|pulseaudio-zeroconf}} package.<br />
<br />
=== Front-ends ===<br />
<br />
There are a number of front-ends available for controlling the PulseAudio daemon:<br />
<br />
==== Console ====<br />
<br />
* {{App|ncpamixer|Ncurses mixer for PulseAudio inspired by pavucontrol.|https://github.com/fulhax/ncpamixer|{{AUR|ncpamixer}}}}<br />
* {{App|pacmixer|Alsamixer alike for PulseAudio.|https://github.com/cdemoulins/pamixer|{{AUR|pacmixer}}}}<br />
* {{App|PAmix|Ncurses PulseAudio mixer similar to pavucontrol.|https://github.com/cdemoulins/pamixer|{{AUR|pamix-git}}}}<br />
* {{App|pamixer|PulseAudio command line mixer.|https://github.com/cdemoulins/pamixer|{{Pkg|pamixer}}}}<br />
* {{App|pavolume|Simple command-line volume control for PulseAudio with libnotify messages.|https://github.com/sseemayer/pavolume|{{AUR|pavolume-git}}}}<br />
* {{App|Ponymix|Command line mixer for PulseAudio.|https://github.com/falconindy/ponymix|{{Pkg|ponymix}}}}<br />
* {{App|pulseaudio-ctl|Control PulseAudio volume from the shell or mapped to keyboard shortcuts.|https://github.com/graysky2/pulseaudio-ctl|{{AUR|pulseaudio-ctl}}}}<br />
* {{App|pulsemixer|CLI and curses mixer for PulseAudio|https://github.com/GeorgeFilipkin/pulsemixer|{{Pkg|pulsemixer}}}}<br />
<br />
==== Graphical ====<br />
<br />
* {{App|MicTray|Lightweight system tray application which lets you control the microphone state and volume using PulseAudio.|https://github.com/Junker/MicTray|{{AUR|mictray}}}}<br />
* {{App|pa-applet|System tray applet for PulseAudio with volume bar.|https://github.com/fernandotcl/pa-applet|{{AUR|pa-applet-git}}}}<br />
* {{App|pasystray|System tray applet for PulseAudio.|https://github.com/christophgysin/pasystray|{{AUR|pasystray}}}}<br />
* {{App|plasma-pa|[[KDE]] Plasma applet for audio volume management using PulseAudio|https://cgit.kde.org/plasma-pa.git|{{Pkg|plasma-pa}}}}<br />
* {{App|PulseAudio Manager|Simple GTK+ frontend for PulseAudio.|http://0pointer.de/lennart/projects/paman/|{{AUR|paman}}}}<br />
* {{App|PulseAudio Preferences|Simple GTK+ configuration dialog for PulseAudio.|https://freedesktop.org/software/pulseaudio/paprefs/|{{Pkg|paprefs}}}}<br />
* {{App|PulseAudio Volume Control|Simple GTK+ volume control tool ("mixer") for PulseAudio.|https://freedesktop.org/software/pulseaudio/pavucontrol/|{{Pkg|pavucontrol}}}}<br />
* {{App|PulseAudio Volume Control (Qt)|Mixer for PulseAudio (Qt port of pavucontrol).|https://github.com/lxqt/pavucontrol-qt|{{Pkg|pavucontrol-qt}}}}<br />
* {{App|PulseAudio Volume Meter|Simple GTK+ volume meter for PulseAudio.|http://0pointer.de/lennart/projects/pavumeter/|{{AUR|pavumeter}}}}<br />
* {{App|PulseEffects|Audio effects for PulseAudio applications.|https://github.com/wwmm/pulseeffects|{{AUR|pulseeffects}}}}<br />
* {{App|Volctl|Per-application system tray applet volume control for PulseAudio.|https://buzz.github.io/volctl/|{{AUR|volctl}}}}<br />
* {{App|Xfce PulseAudio Panel Plugin|PulseAudio plugin for [[Xfce]]4 panel.|https://goodies.xfce.org/projects/panel-plugins/xfce4-pulseaudio-plugin|{{Pkg|xfce4-pulseaudio-plugin}}}}<br />
<br />
== Configuration ==<br />
{{Merge|PulseAudio/Configuration|Configuration should stay in the main article, so the linked page should be merged here.|section=Abandoned draft}}<br />
<br />
By default, PulseAudio is configured to automatically detect all sound cards and manage them. It takes control of all detected ALSA devices and redirects all audio streams to itself, making the PulseAudio daemon the central configuration point. The daemon should work mostly out of the box, only requiring a few minor tweaks. <br />
<br />
While PulseAudio usually runs fine out of the box and requires only minimal configuration, advanced users can change almost every aspect of the daemon by either altering the default configuration file to disable modules or writing your own from scratch.<br />
<br />
PulseAudio runs as a server daemon that can run either system-wide or on per-user basis using a client/server architecture. The daemon by itself does nothing without its '''modules''' except to provide an API and host dynamically loaded modules. The audio routing and processing tasks are all handled by various modules, including PulseAudio's native protocol itself (provided by [https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index22h3 module-native-protocol-unix]). Clients reach the server through one of many protocol modules that will accept audio from external sources, route it through PulseAudio and eventually have it go out through a final other module. The output module does not have to be an actual sound output: it can dump the stream into a file, stream it to a broadcasting server such as [[Icecast]], or even just discard it.<br />
<br />
You can find a detailed list of all available modules at [https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/ Pulseaudio Loadable Modules]. To enable them you can just add a line {{ic|load-module <module-name-from-list>}} to {{ic|~/.config/pulse/default.pa}}.<br />
<br />
=== Configuration files ===<br />
<br />
PulseAudio will first look for configuration files in the home directory {{ic|~/.config/pulse}}, then system-wide {{ic|/etc/pulse}}.<br />
<br />
{{Tip|<br />
* It is strongly suggested not to edit system-wide configuration files, but rather edit user ones. Create the {{ic|~/.config/pulse}} directory, then copy the system configuration files into it and edit according to your need.<br />
* Make sure you keep user configuration in sync with changes to the packaged files in {{ic|/etc/pulse/}}. Otherwise, PulseAudio may refuse to start due to configuration errors.<br />
* There is usually no need to add your user to the {{ic|audio}} group, as PulseAudio uses [[udev]] and ''logind'' to give access dynamically to the currently "active" user. Exceptions would include running the machine headless so that there is no currently "active" user.}}<br />
<br />
==== daemon.conf ====<br />
<br />
This is the main configuration file to configure the daemon itself. It defines base settings like the default sample rates used by modules, resampling methods, realtime scheduling and various other settings related to the server process. These can not be changed at runtime without restarting the PulseAudio daemon. The defaults are sensible for most users, see the {{man|5|pulse-daemon.conf}} manpage for additional information. Boolean options accepts any of these: {{ic|true}}, {{ic|yes}}, {{ic|on}} and {{ic|1}} as well as {{ic|false}}, {{ic|no}}, {{ic|off}} and {{ic|0}}.<br />
<br />
{{Note|PulseAudio does not perform tilde expansion on paths in this file. Use absolute paths for any files.}}<br />
<br />
{| class="wikitable"<br />
|+ Notable configuration options<br />
! Option || Description<br />
|+<br />
| daemonize || Controls whether the server will daemonize itself and return. Set to {{ic|no}} when debugging so you can see the debugging information on the terminal.<br />
|+<br />
| resample-method || Which resampler to use when audio with incompatible sample rates needs to be passed between modules (e.g. playback of 96kHz audio on hardware which only supports 48kHz). The available resamplers can be listed with {{ic|$ pulseaudio --dump-resample-methods}}. Choose the best tradeoff between CPU usage and audio quality for the present use-case. {{Tip|In some cases PulseAudio will generate a high CPU load. This can happen when multiple streams are resampled (individually). If this is a common use-case in a workflow, it should be considered to create an additional sink at a matching sample rate which can then be fed into the main sink, resampling only once.}}<br />
|+<br />
| avoid-resampling || With {{ic|1=avoid-resampling = yes}}, PulseAudio automatically configures the hardware to the sample rate which the application uses, if the hardware supports this sample rate (needs [https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/11.0/ PA 11] or higher)<br />
{{Warning|Enabling this feature might cause audio distortion, therefore it is disabled by default, see the [https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/11.0/ release notes] for more information.}}<br />
|+<br />
| enable-remixing || When the input and output have a different channel count (for example, outputting a 6 channel movie into a stereo sink), pulse can either remix all the channels (default, {{ic|yes}}) or just trivially map the channels by their name (left goes to left, right to right, all others ignored) when {{ic|no}}<br />
|+<br />
| system-instance || If set to {{ic|yes}}, run the daemon as a [https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/ system-wide] instance. [https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/ Highly discouraged] as it can introduce security issues. Useful on [[Xorg multiseat|Multiseat]] systems, or headless systems that have no real local users. Defaults to {{ic|no}}.<br />
|+<br />
| flat-volumes ||{{ic|flat-volumes}} scales the device-volume with the volume of the "loudest" application. For example, raising the VoIP call volume will raise the hardware volume and adjust the music-player volume so it stays where it was, without having to lower the volume of the music-player manually. Defaults to {{ic|yes}} upstream, but to {{ic|no}} within Arch. {{Note|The default behavior upstream can sometimes be confusing and some applications, unaware of this feature, can set their volume to 100% at startup, potentially blowing your speakers or your ears. This is why Arch defaults to the classic (ALSA) behavior by setting this to {{ic|no}}.}}<br />
|+<br />
| realtime-scheduling || If your [[kernel]] supports realtime scheduling (for instance, [[Realtime kernel]] or [[Linux-ck]]), set this to {{ic|yes}} to ensure PulseAudio can deliver low-latency glitch-free playback. You can adjust {{ic|realtime-priority}} as well to have it use the correct priority, especially when [[JACK]] is also running on the system.<br />
|+<br />
| nice-level || Since PulseAudio runs in userspace and involves inter-process communication, audio can be subject to dropouts if the daemon doesn't have enough CPU time to process the audio. The default usually is enough, but can be tweaked to give pulse the wanted priority over (or below) other applications.<br />
|+<br />
| exit-idle-time || If you want to run PulseAudio only when needed and use ALSA otherwise, you can set a delay in seconds after which the daemon will automatically shutdown after all clients are disconnected. Set it to -1 to disable this feature.<br />
|+<br />
| log-level || When debugging, you may want to increase the logging level of the daemon to see exactly why a specific module fails to load. High logging levels will sometimes print useful information such as detected minimum latency for the system, which can then be used to tweak {{ic|default-fragments}} and {{ic|default-fragment-size-msec}}.<br />
|+<br />
| default-sample-format || Usually doesn't need change, but if your sound card's native format is diffent performance and quality can be improved by setting the right format here.<br />
|+<br />
| default-sample-rate || The default sample rate user by pulse unless overriden at module level. Change this if your sound card doesn't support 44100Hz or if you wish to upsample all audio. See previous note about CPU usage.<br />
|+<br />
| alternate-sample-rate || To fix a common limitation where movies at 48000Hz were needlessly downsampled to 44100Hz, some modules support changing their sample rate dynamically to avoid resampling when possible. See manual for more in-depth information. Usually don't need any change.<br />
|+<br />
| default-channels || The default number of channels when not specified. Usually don't need any change as you can configure more channels on per-module basis.<br />
|+<br />
| default-fragments || Audio samples are split into multiple fragments of {{ic|default-fragment-size-msec}} each. The larger the buffer is, the less likely audio will skip when the system is overloaded. On the downside this will increase the overall latency. Increase this value if you have issues.<br />
|+<br />
| default-fragment-size-msec || The size in milliseconds of each fragment. This is the amount of data that will be processed at once by the daemon. TODO: Verify<br />
|}<br />
<br />
==== default.pa ====<br />
<br />
This file is a startup script and is used to configure modules. It is actually parsed and read after the daemon has finished initializing and additional commands can be sent at runtime using {{ic|$ pactl}} or {{ic|$ pacmd}}. The startup script can also be provided on the command line by starting PulseAudio in a terminal using {{ic|$ pulseaudio -nC}}. This will make the daemon load the CLI module and will accept the configuration directly from the command line, and output resulting information or error messages on the same terminal. This can be useful when debugging the daemon or just to test various modules before setting them permanently on disk. The manual page is quite self-explanatory, consult {{man|5|pulse-cli-syntax}} for the details of the syntax.<br />
<br />
{{tip|<br />
* Rather than being a complete copy, {{ic|~/.config/pulse/default.pa}} can start with the line {{ic|.include /etc/pulse/default.pa}} and then just override the defaults.<br />
* Run {{ic|<nowiki>$ pacmd list-sinks|egrep -i 'index:|name:'</nowiki>}} to list available sinks. The present default sink is marked with an asterisk.<br />
* Edit {{ic|~/.config/pulse/default.pa}} to insert/alter the set-default-sink command using the sink's name as the numbering cannot be guaranteed repeatable.<br />
}}<br />
<br />
==== client.conf ====<br />
This is the configuration file read by every PulseAudio client application. It is used to configure runtime options for individual clients. It can be used to set and configure the default sink and source statically as well as allowing (or disallowing) clients to automatically start the server if not currently running.<br />
<br />
=== Configuration command ===<br />
<br />
The main command to configure a server during runtime is {{ic|$ pacmd}}. Run {{ic|$ pacmd --help}} for a list options, or just run {{ic|$ pacmd}} to enter the shell interactive mode and {{ic|Ctrl+d}} to exit. All modifications will immediately be applied.<br />
<br />
Once your new settings have been tested and meet your needs, edit the {{ic|default.pa}} accordingly to make the change persistent. See [[PulseAudio/Examples]] for some basic settings.<br />
<br />
{{Tip|leave the {{ic|load-module module-default-device-restore}} line in the {{ic|default.pa}} file untouched. It will allow you to restart the server in its default state, thus dismissing any wrong setting.}}<br />
<br />
It is important to understand that the "sources" (processes, capture devices) and "sinks" (sound cards, servers, other processes) accessible and selectable through PulseAudio depend upon the current hardware "Profile" selected. These "Profiles" are those ALSA "pcms" listed by the command {{ic|aplay -L}}, and more specifically by the command {{ic|pacmd list-cards}}, which will include a line "index:", a list beginning "profiles:", and a line "active profile: <...>" in the output, among other things. "Profiles" correspond to different card input/output configurations, notably the number of available input/output channels.<br />
<br />
The "active profile" can be set with the command {{ic|pacmd set-card-profile INDEX PROFILE}}, with ''no'' comma separating INDEX and PROFILE, where INDEX is just the number on the line "index:" and a PROFILE name is everything shown from the beginning of any line under "profile:" to just ''before'' the colon and first space, as shown by the command {{ic|pacmd list-cards}}. For instance, {{ic|pacmd set-card-profile 0 output:analog-stereo+input:analog-stereo}}.<br />
<br />
It may be easier to select a "Profile" with a graphical tool like {{ic|pavucontrol}}, under the "Configuration" tab, or KDE System Settings, "Multimedia/Audio and Video Settings", under the "Audio Hardware Setup" tab. Each audio "Card", which are those devices listed by the command {{ic|aplay -l}}, or again by the command {{ic|pacmd list-cards}}, will have its own selectable "Profile". When a "Profile" has been selected, the then available "sources" and "sinks" can be seen by using the commands {{ic|pacmd list-sources}} and {{ic|pacmd list-sinks}}. Note that the "index" of the available sources and sinks will change each time a card profile is changed.<br />
<br />
The selected "Profile" can be an issue for some applications, especially the Adobe Flash players, typically {{ic|/usr/lib/mozilla/plugins/libflashplayer.so}} and {{ic|/usr/lib/PepperFlash/libpepflashplayer.so}}. Often, these Flash players will only work when one of the Stereo profiles is selected, and otherwise, will play video with no sound, or will simply "crash". When all else fails, you might try selecting a different profile.<br />
<br />
Of course, when configuring some variation of Surround Sound in PulseAudio, the appropriate Surround profile will have to be selected, before Surround Sound will work, or in order to do things like remap the speaker channels.<br />
<br />
== Running ==<br />
<br />
PulseAudio on Arch has {{ic|pulseaudio.socket}} enabled by default for the [[systemd/User]] instance. This means that PulseAudio will automatically start when needed.<br />
<br />
{{Note|<br />
* To disable {{ic|pulseaudio.socket}}, make sure that {{ic|$XDG_CONFIG_HOME/systemd/user/}} exists and run {{ic|systemctl --user mask pulseaudio.socket}}.<br />
* Many [[desktop environments]] support [[XDG Autostart]]. In those desktop environments, PulseAudio will be launched automatically regardless of the socket activation status.<br />
}}<br />
<br />
For more information, see [http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Running/ PulseAudio: Running].<br />
<br />
== Back-end configuration ==<br />
<br />
=== ALSA ===<br />
<br />
If you have applications that do not support PulseAudio explicitly but rely on ALSA, these applications will try to access the sound card directly via ALSA and will therefore bypass PulseAudio. PulseAudio will thus not have access to the sound card any more. As a result, all applications relying on PulseAudio will not be working any more, leading to [[PulseAudio/Troubleshooting#The only device shown is "dummy output" or newly connected cards are not detected|this issue]]. To prevent this, you will need to install the {{Pkg|pulseaudio-alsa}} package. It contains the necessary {{ic|/etc/asound.conf}} for configuring ALSA to use PulseAudio. Also make sure that {{ic|~/.asoundrc}} does not exist, as it would override the {{ic|/etc/asound.conf}} file.<br />
<br />
Please also install {{Pkg|lib32-libpulse}} and {{Pkg|lib32-alsa-plugins}} if you run a x86_64 system and want to have sound for 32-bit [[multilib]] programs like [[Wine]] and [[Steam]].<br />
<br />
To prevent applications from using ALSA's OSS emulation and bypassing PulseAudio (thereby preventing other applications from playing sound), make sure the module {{ic|snd_pcm_oss}} is not being loaded at boot. If it is currently loaded ({{ic|<nowiki>lsmod | grep oss</nowiki>}}), disable it by executing:<br />
# rmmod snd_pcm_oss<br />
<br />
==== Expose PulseAudio sources, sinks and mixers to ALSA ====<br />
Although {{Pkg|pulseaudio-alsa}} contains the necessary configuration file to allow ALSA applications to use PulseAudio's default device, ALSA's {{ic|pulse}} plugin is more versatile than that:<br />
<br />
{{hc|~/.asoundrc (or /etc/asound.conf)|2=<br />
# Create an alsa input/output using specific PulseAudio sources/sinks<br />
pcm.pulse-example1 {<br />
type pulse<br />
device "my-combined-sink" # name of a source or sink<br />
fallback "pulse-example2" # if combined not available<br />
}<br />
<br />
pcm.pulse-example2 {<br />
type pulse<br />
device "other-sound-card" # name of a source or sink<br />
# example: device "alsa_output.pci-0000_00_1b.0.analog-stereo"<br />
}<br />
<br />
# Create an alsa mixer using specific PulseAudio sources/sinks<br />
# these can be tested with "alsamixer -D pulse-example3"<br />
ctl.pulse-example3 {<br />
type pulse<br />
device "my-output" # name of source or sink to control<br />
<br />
# example: always control the laptop speakers:<br />
# device "alsa_output.pci-0000_00_1b.0.analog-stereo"<br />
fallback "pulse-example4" # supports fallback too<br />
}<br />
<br />
# Mixers also can control a specific source and sink, separately:<br />
ctl.pulse-example4 {<br />
type pulse<br />
sink "my-usb-headphones"<br />
source "my-internal-mic"<br />
<br />
# example: output to HDMI, record using internal<br />
sink "alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1"<br />
source "alsa_input.pci-0000_00_1b.0.analog-stereo"<br />
}<br />
<br />
# These can override the default mixer (example: for pnmixer integration)<br />
ctl.!default {<br />
type pulse<br />
sink "alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1"<br />
source "alsa_input.pci-0000_00_1b.0.analog-stereo"<br />
}<br />
}}<br />
<br />
The [http://git.alsa-project.org/?p=alsa-plugins.git;a=tree;f=pulse;hb=HEAD source code] can be read to know all available options.<br />
<br />
==== ALSA/dmix without grabbing hardware device ====<br />
<br />
{{Note|This section describes alternative configuration, which is generally '''not''' recommended.}}<br />
<br />
You may want to use ALSA directly in most of your applications while still being able to use applications which require PulseAudio at the same time. The following steps allow you to make PulseAudio use dmix instead of grabbing ALSA hardware device.<br />
<br />
* Remove package {{Pkg|pulseaudio-alsa}}, which provides compatibility layer between ALSA applications and PulseAudio. After this your ALSA apps will use ALSA directly without being hooked by Pulse.<br />
<br />
* Edit {{ic|/etc/pulse/default.pa}}.<br />
:Find and uncomment lines which load back-end drivers. Add '''device''' parameters as follows. Then find and comment lines which load autodetect modules.<br />
load-module module-alsa-sink '''device=dmix'''<br />
load-module module-alsa-source '''device=dsnoop'''<br />
# load-module module-udev-detect<br />
# load-module module-detect<br />
<br />
* ''Optional:'' If you use {{Pkg|kmix}} you may want to control ALSA volume instead of PulseAudio volume:<br />
$ echo export KMIX_PULSEAUDIO_DISABLE=1 > ~/.kde4/env/kmix_disable_pulse.sh<br />
$ chmod +x ~/.kde4/env/kmix_disable_pulse.sh<br />
<br />
* Now, reboot your computer and try running ALSA and PulseAudio applications at the same time. They both should produce sound simultaneously.<br />
:Use {{Pkg|pavucontrol}} to control PulseAudio volume if needed.<br />
<br />
=== OSS ===<br />
<br />
There are multiple ways of making OSS-only programs output to PulseAudio:<br />
<br />
==== ossp ====<br />
<br />
Install {{Pkg|ossp}} package and start {{ic|osspd.service}}.<br />
<br />
==== padsp wrapper ====<br />
<br />
Programs using OSS can work with PulseAudio by starting it with padsp (included with PulseAudio):<br />
<br />
$ padsp OSSprogram<br />
<br />
A few examples:<br />
<br />
$ padsp aumix<br />
$ padsp sox foo.wav -t ossdsp /dev/dsp<br />
<br />
You can also add a custom wrapper script like this: <br />
<br />
{{hc|/usr/local/bin/OSSProgram|<nowiki><br />
#!/bin/sh<br />
exec padsp /usr/bin/OSSprogram "$@"<br />
</nowiki>}}<br />
<br />
Make sure {{ic|/usr/local/bin}} comes before {{ic|/usr/bin}} in your '''PATH'''.<br />
<br />
=== GStreamer ===<br />
<br />
Install {{Pkg|gst-plugins-good}}, or {{AUR|gstreamer0.10-good-plugins}} if your intended program has a legacy [[GStreamer]] implementation.<br />
<br />
=== OpenAL ===<br />
<br />
OpenAL Soft should use PulseAudio by default, but can be explicitly configured to do so: {{hc|/etc/openal/alsoft.conf|2=drivers=pulse,alsa}}<br />
<br />
=== libao ===<br />
<br />
Edit the libao configuration file:<br />
{{hc|/etc/libao.conf|2=default_driver=pulse}}<br />
Be sure to remove the {{ic|1=dev=default}} option of the alsa driver or adjust it to specify a specific Pulse sink name or number. <br />
<br />
{{Note|You could possibly also keep the libao standard of outputting to the ''alsa'' driver and its default device if you install {{pkg|pulseaudio-alsa}} since the ALSA default device then '''is''' PulseAudio.}}<br />
<br />
== Equalizer ==<br />
<br />
{{Warning|The equalizer module is considered unstable and might be removed from PulseAudio. For more, see the [https://lists.freedesktop.org/archives/pulseaudio-discuss/2014-March/020174.html mailing list].}}<br />
<br />
PulseAudio has an integrated 10-band equalizer system. In order to use the equalizer do the following:<br />
<br />
Install {{Pkg|pulseaudio-equalizer}}:<br />
<br />
=== Load equalizer sink and dbus-protocol module ===<br />
<br />
$ pactl load-module module-equalizer-sink<br />
$ pactl load-module module-dbus-protocol<br />
<br />
=== GUI front-end ===<br />
<br />
run:<br />
<br />
$ qpaeq<br />
<br />
{{Note|If qpaeq has no effect, install {{pkg|pavucontrol}} and change "ALSA Playback on" to "FFT based equalizer on ..." while the media player is running.}}<br />
<br />
=== Load equalizer and dbus module on every boot ===<br />
<br />
Edit the {{ic|/etc/pulse/default.pa}} or {{ic|~/.config/pulse/default.pa}} file with your favorite editor and append the following lines:<br />
<br />
### Load the integrated PulseAudio equalizer and D-Bus module<br />
load-module module-equalizer-sink<br />
load-module module-dbus-protocol<br />
<br />
{{Note|The equalizer sink needs to be loaded after the master sink is already available.}}<br />
<br />
=== Alternative equalizers ===<br />
<br />
{{AUR|pulseaudio-equalizer-ladspa}} (based on {{Pkg|swh-plugins}}) can be used as an alternative to {{Pkg|pulseaudio-equalizer}}.<br />
<br />
{{AUR|pulseeffects}} applies peak limiting, compression, reverberation, auto volume and 15 bands equalization to Pulseaudio applications output.<br />
<br />
== Applications ==<br />
<br />
=== QEMU ===<br />
<br />
Refer to [[QEMU#Host]] for a detailed guide on how to configure pulseaudio within [[QEMU]].<br />
<br />
=== AlsaMixer.app ===<br />
<br />
Make {{AUR|alsamixer.app}} dockapp for the {{AUR|windowmaker}} use pulseaudio, e.g.<br />
$ AlsaMixer.app --device pulse<br />
<br />
Here is a two examples where the first one is for ALSA and the other one is for pulseaudio. You can run multiple instances of it. Use the {{ic|-w}} option to choose which of the control buttons to bind to the mouse wheel.<br />
# AlsaMixer.app -3 Mic -1 Master -2 PCM --card 0 -w 1<br />
# AlsaMixer.app --device pulse -1 Capture -2 Master -w 2<br />
<br />
{{Note|It can use only those output sinks that set as default.}}<br />
<br />
=== XMMS2 ===<br />
<br />
Make it switch to pulseaudio output<br />
$ nyxmms2 server config output.plugin pulse<br />
and to alsa<br />
$ nyxmms2 server config output.plugin alsa<br />
To make xmms2 use a different output sink, e.g.<br />
$ nyxmms2 server config pulse.sink alsa_output.pci-0000_04_01.0.analog-stereo.monitor<br />
<br />
See also the official guide [https://xmms2.org/wiki/Using_the_application].<br />
<br />
=== KDE Plasma Workspaces and Qt4 ===<br />
<br />
PulseAudio will automatically be used by KDE/Qt4 applications. It is supported by default in the KDE sound mixer. For more information see the [https://www.freedesktop.org/wiki/Software/PulseAudio/Desktops/KDE/ KDE page in the PulseAudio wiki].<br />
<br />
One useful tidbit from that page is that {{ic|load-module module-device-manager}} should be loaded. This usually happens automatically at login through the script {{ic|/usr/bin/start-pulseaudio-x11}}; if you find that the module is not loaded automatically you can consider adding it manually to {{ic|/etc/pulse/default.pa}}. See [[#Switch on connect]] for possible conflicts with the {{ic|module-switch-on-connect}}.<br />
<br />
If the phonon-gstreamer backend is used for Phonon, GStreamer should also be configured as described in [[#GStreamer]].<br />
<br />
=== Audacious ===<br />
<br />
[[Audacious]] natively supports PulseAudio. In order to use it, set Audacious Preferences -> Audio -> Current output plugin to 'PulseAudio Output Plugin'.<br />
<br />
=== Music Player Daemon (MPD) ===<br />
<br />
[http://mpd.wikia.com/wiki/PulseAudio configure] [[MPD]] to use PulseAudio. See also [[MPD/Tips and Tricks#PulseAudio]].<br />
<br />
=== MPlayer ===<br />
<br />
[[MPlayer]] natively supports PulseAudio output with the {{ic|-ao pulse}} option. It can also be configured to default to PulseAudio output, in {{ic|~/.mplayer/config}} for per-user, or {{ic|/etc/mplayer/mplayer.conf}} for system-wide:<br />
{{hc|/etc/mplayer/mplayer.conf|2=ao=pulse}}<br />
<br />
=== guvcview ===<br />
<br />
{{Pkg|guvcview}} when using the PulseAudio input from a [[Webcam]] may have the audio input suspended resulting in no audio being recorded. You can check this by executing:<br />
<br />
$ pactl list sources<br />
<br />
If the audio source is "suspended" then modifying the following line in {{ic|/etc/pulse/default.pa}} and changing:<br />
<br />
load-module module-suspend-on-idle<br />
to<br />
#load-module module-suspend-on-idle<br />
<br />
And then either restarting PulseAudio or your computer will only idle the input source instead of suspending it. guvcview will then correctly record audio from the device.<br />
<br />
== Apple AirPlay2 devices ==<br />
<br />
Install {{Pkg|paprefs}}, {{Pkg|pulseaudio-zeroconf}} and {{Pkg|avahi}}.<br />
<br />
Make sure the Avahi daemon to running with {{ic|$ systemctl start avahi-daemon}}<br />
<br />
Run {{ic|$ paprefs}}. In the {{ic|Network Access tab}}, turn on {{ic|Make discoverable Apple AirTunes}} sound devices available locally, then close the application.<br />
<br />
Restart pulseaudio, then hopefully your AirPlay devices will be auto discovered through {{ic|module-raop-discover}} and automagically turn up as an output device.<br />
<br />
== Networked audio ==<br />
<br />
{{Expansion|please allow for some time for me to port the most important information here -- [[User:Nodiscc|Nodiscc]]|Talk:PulseAudio#Networked_audio}}<br />
Play sound through the outputs of another computer on the network<br />
<br />
=== Basic setup with direct connection ===<br />
<br />
===== On the server =====<br />
<br />
Edit {{ic|~/.config/pulse/default.pa}} or {{ic|/etc/pulse/default.pa}} (or {{ic|/etc/pulse/system.pa}} if PulseAudio is started in system mode) and add the following line:<br />
<br />
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;172.16.0.0/16<br />
<br />
Here only client from the IPs or IPs range specified here can stream sound.<br />
<br />
To allow access from everywhere:<br />
<br />
load-module module-native-protocol-tcp auth-anonymous=true<br />
<br />
{{Note| If {{ic|auth-ip-acl}} neither {{ic|auth-anonymous}} are specified, authentification is done via {{ic|~/.pulse-cookie}} which must be the same on clients and server.}}<br />
<br />
By default PulseAudio listens on port {{ic|tcp/4713}} for incoming connections, you may need to open this port in your [[firewall]].<br />
<br />
===== On the client =====<br />
<br />
Edit {{ic|~/.config/pulse/client.conf}} or {{ic|/etc/pulse/client.conf}}, to respectively apply this directive to one user or to all, and add :<br />
<br />
default-server = ''server-address''<br />
<br />
''server-address'' can be a simple domain-name or IPv4, for more see [https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/ServerStrings/ the documentation]<br />
<br />
It is also possible to set the server address in the environment variable {{ic|$PULSE_SERVER}}.<br />
<br />
== Tips and tricks ==<br />
<br />
{{Merge|PulseAudio/Examples|Same topic.}}<br />
<br />
=== Keyboard volume control ===<br />
<br />
Map the following commands to your volume keys: {{ic|XF86AudioRaiseVolume}}, {{ic|XF86AudioLowerVolume}}, {{ic|XF86AudioMute}}. See [[Extra keyboard keys in Xorg]] for details.<br />
<br />
First find out which sink corresponds to the audio output you'd like to control.<br />
To list available sinks:<br />
pactl list sinks short<br />
<br />
Suppose sink 0 is to be used, to raise the volume:<br />
sh -c "pactl set-sink-mute 0 false ; pactl set-sink-volume 0 +5%"<br />
<br />
To lower the volume:<br />
sh -c "pactl set-sink-mute 0 false ; pactl set-sink-volume 0 -5%"<br />
<br />
To mute/unmute the volume:<br />
pactl set-sink-mute 0 toggle<br />
<br />
To mute/unmute the microphone:<br />
pactl set-source-mute 1 toggle<br />
<br />
{{Tip|To have keyboard shortcuts operate always on the default sink, specify {{ic|@DEFAULT_SINK@}} as the sink number, for example {{ic|pactl set-sink-mute @DEFAULT_SINK@ toggle}}.}}<br />
<br />
=== Play sound from a non-interactive shell (systemd service, cron) === <br />
<br />
Set {{ic|XDG_RUNTIME_DIR}} before the command (replace {{ic|''user_id''}} with the ID of the user running PulseAudio):<br />
<br />
XDG_RUNTIME_DIR=/run/user/''user_id'' paplay /usr/share/sounds/freedesktop/stereo/complete.oga<br />
<br />
Or use {{ic|machinectl}}:<br />
<br />
# machinectl shell .host --uid=''user_id'' /usr/bin/paplay /usr/share/sounds/freedesktop/stereo/complete.oga<br />
<br />
=== X11 Bell Events ===<br />
<br />
To get pulseaudio to handle X11 bell events, run the following commands after the X11 session has been started:<br />
<br />
pactl upload-sample /usr/share/sounds/freedesktop/stereo/bell.oga x11-bell<br />
pactl load-module module-x11-bell sample=x11-bell display=$DISPLAY<br />
<br />
To adjust the volume of the X11 bell, run the following command:<br />
<br />
xset b 100<br />
<br />
100 is a percentage. This requires the {{Pkg|xorg-xset}} package. See [[Autostarting]] for a way to run these commands automatically when the X11 session is started.<br />
<br />
=== Switch on connect ===<br />
This is a module used to switch the output sound to the newly connected device. For example, if you plug in a USB headset, the output will be switched to that. If you unplug it, the output will be set back to the last device. This used to be quite buggy but got a lot of attention in PulseAudio 8.0 and should work quite well now.<br />
<br />
If you just want to test the module then you can load it at runtime by calling:<br />
$ pactl load-module module-switch-on-connect<br />
<br />
If you want to make the change persistent you will have to add it to your local pulseaudio settings or to /etc/pulse/default.pa (system wide effect). In either case, add this line:<br />
load-module module-switch-on-connect<br />
<br />
{{Accuracy|Editing {{ic|/usr/bin/start-pulseaudio-x11}} will not survive package upgrade. The offending module can be unloaded in the config before loading {{ic|module-switch-on-connect}}, see [[Talk:Bluetooth_headset#GDMs_pulseaudio_instance_captures_bluetooth_headset]].}}<br />
<br />
On KDE/Plasma5 you should furthermore disable module-device-manager. As soon as Plasma5 is started it loads (via start-pulseaudio-x11) the module module-device-manager for pulseaudio to manage the devices. But that module apparently conflicts with module-switch-on-connect. Therefore you should disable that module by editing /bin/start-pulseaudio-x11 and commenting the lines for KDE. Simply logout and login again and in order to renew your pulseaudio session. On connect switching should now work properly.<br />
<br />
===Script for switching analogic outputs===<br />
<br />
Some sound cards present the option of multiple analog outputs, being switchable through using Pulseaudio profiles. But switching manually can become a chore, so you can use the following commands to switch it:<br />
$ pactl set-sink-port 'number of the card' 'port'<br />
<br />
This will set the default output to whatever port you chose.<br />
Example:<br />
$ pactl set-sink-port 0 "analog-output;output-speaker" <br />
<br />
The values can be easily obtained using:<br />
$ pactl list<br />
<br />
Current output can be obtained through:<br />
$ pactl list sinks | grep "active profile"| cut -d ' ' -f 3-<br />
<br />
This process can be automated through a simple script. This script then can be given a shortcut by the user:<br />
<br />
{{hc|~/pa.sh (or anything the user wants)|<nowiki><br />
#!/bin/bash<br />
# This script uses kdialog notification to warn the user of the currently swapped to profile. User could adapt it to their needs or change it.<br />
<br />
CURRENT_PROFILE=$(pactl list sinks | grep "active profile"| cut -d ' ' -f 3-)<br />
<br />
if [ "$CURRENT_PROFILE" = "analog-output;output-speaker" ] ; then<br />
pactl set-sink-port 0 "analog-output;output-headphones-1"<br />
kdialog --title "Pulseaudio" --passivepopup "Headphone" 2 & <br />
else <br />
pactl set-sink-port 0 "analog-output;output-speaker" <br />
kdialog --title "Pulseaudio" --passivepopup "Speaker" 2 &<br />
fi<br />
</nowiki>}}<br />
<br />
This script is intended to swap between two profiles. First checking the current profile then swapping it. Users are required to change the field 'active profile' according to the language pactl reports. Users might need to change the number of the card and the output to fit their machine.<br />
<br />
== Troubleshooting ==<br />
<br />
See [[PulseAudio/Troubleshooting]].<br />
<br />
== See also ==<br />
<br />
* [https://www.freedesktop.org/wiki/Software/PulseAudio/ PulseAudio official website], including documentation<br />
* [https://gavv.github.io/blog/pulseaudio-under-the-hood/ Pulseaudio under the hood]</div>Maccyberhttps://wiki.archlinux.org/index.php?title=PulseAudio&diff=523133PulseAudio2018-05-25T19:44:22Z<p>Maccyber: Added notes about Apple AirPlay2 devices</p>
<hr />
<div>[[Category:Sound]]<br />
[[cs:PulseAudio]]<br />
[[es:PulseAudio]]<br />
[[fr:PulseAudio]]<br />
[[it:PulseAudio]]<br />
[[ja:PulseAudio]]<br />
[[pt:PulseAudio]]<br />
[[ru:PulseAudio]]<br />
[[zh-hans:PulseAudio]]<br />
{{Related articles start}}<br />
{{Related|PulseAudio/Examples}}<br />
{{Related|PulseAudio/Troubleshooting}}<br />
{{Related articles end}}<br />
[[Wikipedia:PulseAudio|PulseAudio]] PulseAudio is a general purpose sound server intended to run as a middleware between your applications and your hardware devices, either using [[ALSA]] or [[OSS]]. It also offers easy network streaming across local devices using [[Avahi]] if enabled. While its main purpose is to ease audio configuration, its modular design allows more advanced users to configure the daemon precisely to best suit their needs.<br />
<br />
{{Note|Some confusion may occur between [[ALSA]] and PulseAudio. ALSA includes a Linux kernel component with sound card drivers, as well as a userspace component, {{ic|libalsa}}.[http://www.alsa-project.org/main/index.php/Download] PulseAudio builds only on the kernel component, but offers compatibility with {{ic|libalsa}} through {{Pkg|pulseaudio-alsa}}.[http://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/#index14h3]}}<br />
<br />
== Installation ==<br />
<br />
[[Install]] the {{Pkg|pulseaudio}} package.<br />
<br />
{{Note|Some PulseAudio modules have been [https://www.archlinux.org/news/pulseaudio-split/ split] from the main package and must be installed separately if needed.}}<br />
<br />
* For PulseAudio to manage [[ALSA]] as well, install the {{Pkg|pulseaudio-alsa}} package, see [[#ALSA]].<br />
* For [[bluetooth]] support (Bluez), install the {{Pkg|pulseaudio-bluetooth}} package, see [[bluetooth headset]] page.<br />
* For equalizer sink (qpaeq), install the {{Pkg|pulseaudio-equalizer}} package.<br />
* For GConf support (paprefs), install the {{Pkg|pulseaudio-gconf}} package.<br />
* For [[JACK]] sink, source and jackdbus detection, install the {{Pkg|pulseaudio-jack}} package.<br />
* For infrared (LIRC) volume control, install the {{Pkg|pulseaudio-lirc}} package.<br />
* For Zeroconf ([[Avahi]]/DNS-SD) support, install the {{Pkg|pulseaudio-zeroconf}} package.<br />
<br />
=== Front-ends ===<br />
<br />
There are a number of front-ends available for controlling the PulseAudio daemon:<br />
<br />
==== Console ====<br />
<br />
* {{App|ncpamixer|Ncurses mixer for PulseAudio inspired by pavucontrol.|https://github.com/fulhax/ncpamixer|{{AUR|ncpamixer}}}}<br />
* {{App|pacmixer|Alsamixer alike for PulseAudio.|https://github.com/cdemoulins/pamixer|{{AUR|pacmixer}}}}<br />
* {{App|PAmix|Ncurses PulseAudio mixer similar to pavucontrol.|https://github.com/cdemoulins/pamixer|{{AUR|pamix-git}}}}<br />
* {{App|pamixer|PulseAudio command line mixer.|https://github.com/cdemoulins/pamixer|{{Pkg|pamixer}}}}<br />
* {{App|pavolume|Simple command-line volume control for PulseAudio with libnotify messages.|https://github.com/sseemayer/pavolume|{{AUR|pavolume-git}}}}<br />
* {{App|Ponymix|Command line mixer for PulseAudio.|https://github.com/falconindy/ponymix|{{Pkg|ponymix}}}}<br />
* {{App|pulseaudio-ctl|Control PulseAudio volume from the shell or mapped to keyboard shortcuts.|https://github.com/graysky2/pulseaudio-ctl|{{AUR|pulseaudio-ctl}}}}<br />
* {{App|pulsemixer|CLI and curses mixer for PulseAudio|https://github.com/GeorgeFilipkin/pulsemixer|{{Pkg|pulsemixer}}}}<br />
<br />
==== Graphical ====<br />
<br />
* {{App|MicTray|Lightweight system tray application which lets you control the microphone state and volume using PulseAudio.|https://github.com/Junker/MicTray|{{AUR|mictray}}}}<br />
* {{App|pa-applet|System tray applet for PulseAudio with volume bar.|https://github.com/fernandotcl/pa-applet|{{AUR|pa-applet-git}}}}<br />
* {{App|pasystray|System tray applet for PulseAudio.|https://github.com/christophgysin/pasystray|{{AUR|pasystray}}}}<br />
* {{App|plasma-pa|[[KDE]] Plasma applet for audio volume management using PulseAudio|https://cgit.kde.org/plasma-pa.git|{{Pkg|plasma-pa}}}}<br />
* {{App|PulseAudio Manager|Simple GTK+ frontend for PulseAudio.|http://0pointer.de/lennart/projects/paman/|{{AUR|paman}}}}<br />
* {{App|PulseAudio Preferences|Simple GTK+ configuration dialog for PulseAudio.|https://freedesktop.org/software/pulseaudio/paprefs/|{{Pkg|paprefs}}}}<br />
* {{App|PulseAudio Volume Control|Simple GTK+ volume control tool ("mixer") for PulseAudio.|https://freedesktop.org/software/pulseaudio/pavucontrol/|{{Pkg|pavucontrol}}}}<br />
* {{App|PulseAudio Volume Control (Qt)|Mixer for PulseAudio (Qt port of pavucontrol).|https://github.com/lxqt/pavucontrol-qt|{{Pkg|pavucontrol-qt}}}}<br />
* {{App|PulseAudio Volume Meter|Simple GTK+ volume meter for PulseAudio.|http://0pointer.de/lennart/projects/pavumeter/|{{AUR|pavumeter}}}}<br />
* {{App|PulseEffects|Audio effects for PulseAudio applications.|https://github.com/wwmm/pulseeffects|{{AUR|pulseeffects}}}}<br />
* {{App|Volctl|Per-application system tray applet volume control for PulseAudio.|https://buzz.github.io/volctl/|{{AUR|volctl}}}}<br />
* {{App|Xfce PulseAudio Panel Plugin|PulseAudio plugin for [[Xfce]]4 panel.|https://goodies.xfce.org/projects/panel-plugins/xfce4-pulseaudio-plugin|{{Pkg|xfce4-pulseaudio-plugin}}}}<br />
<br />
== Configuration ==<br />
{{Merge|PulseAudio/Configuration|Configuration should stay in the main article, so the linked page should be merged here.|section=Abandoned draft}}<br />
<br />
By default, PulseAudio is configured to automatically detect all sound cards and manage them. It takes control of all detected ALSA devices and redirects all audio streams to itself, making the PulseAudio daemon the central configuration point. The daemon should work mostly out of the box, only requiring a few minor tweaks. <br />
<br />
While PulseAudio usually runs fine out of the box and requires only minimal configuration, advanced users can change almost every aspect of the daemon by either altering the default configuration file to disable modules or writing your own from scratch.<br />
<br />
PulseAudio runs as a server daemon that can run either system-wide or on per-user basis using a client/server architecture. The daemon by itself does nothing without its '''modules''' except to provide an API and host dynamically loaded modules. The audio routing and processing tasks are all handled by various modules, including PulseAudio's native protocol itself (provided by [https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index22h3 module-native-protocol-unix]). Clients reach the server through one of many protocol modules that will accept audio from external sources, route it through PulseAudio and eventually have it go out through a final other module. The output module does not have to be an actual sound output: it can dump the stream into a file, stream it to a broadcasting server such as [[Icecast]], or even just discard it.<br />
<br />
You can find a detailed list of all available modules at [https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/ Pulseaudio Loadable Modules]. To enable them you can just add a line {{ic|load-module <module-name-from-list>}} to {{ic|~/.config/pulse/default.pa}}.<br />
<br />
=== Configuration files ===<br />
<br />
PulseAudio will first look for configuration files in the home directory {{ic|~/.config/pulse}}, then system-wide {{ic|/etc/pulse}}.<br />
<br />
{{Tip|<br />
* It is strongly suggested not to edit system-wide configuration files, but rather edit user ones. Create the {{ic|~/.config/pulse}} directory, then copy the system configuration files into it and edit according to your need.<br />
* Make sure you keep user configuration in sync with changes to the packaged files in {{ic|/etc/pulse/}}. Otherwise, PulseAudio may refuse to start due to configuration errors.<br />
* There is usually no need to add your user to the {{ic|audio}} group, as PulseAudio uses [[udev]] and ''logind'' to give access dynamically to the currently "active" user. Exceptions would include running the machine headless so that there is no currently "active" user.}}<br />
<br />
==== daemon.conf ====<br />
<br />
This is the main configuration file to configure the daemon itself. It defines base settings like the default sample rates used by modules, resampling methods, realtime scheduling and various other settings related to the server process. These can not be changed at runtime without restarting the PulseAudio daemon. The defaults are sensible for most users, see the {{man|5|pulse-daemon.conf}} manpage for additional information. Boolean options accepts any of these: {{ic|true}}, {{ic|yes}}, {{ic|on}} and {{ic|1}} as well as {{ic|false}}, {{ic|no}}, {{ic|off}} and {{ic|0}}.<br />
<br />
{{Note|PulseAudio does not perform tilde expansion on paths in this file. Use absolute paths for any files.}}<br />
<br />
{| class="wikitable"<br />
|+ Notable configuration options<br />
! Option || Description<br />
|+<br />
| daemonize || Controls whether the server will daemonize itself and return. Set to {{ic|no}} when debugging so you can see the debugging information on the terminal.<br />
|+<br />
| resample-method || Which resampler to use when audio with incompatible sample rates needs to be passed between modules (e.g. playback of 96kHz audio on hardware which only supports 48kHz). The available resamplers can be listed with {{ic|$ pulseaudio --dump-resample-methods}}. Choose the best tradeoff between CPU usage and audio quality for the present use-case. {{Tip|In some cases PulseAudio will generate a high CPU load. This can happen when multiple streams are resampled (individually). If this is a common use-case in a workflow, it should be considered to create an additional sink at a matching sample rate which can then be fed into the main sink, resampling only once.}}<br />
|+<br />
| avoid-resampling || With {{ic|1=avoid-resampling = yes}}, PulseAudio automatically configures the hardware to the sample rate which the application uses, if the hardware supports this sample rate (needs [https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/11.0/ PA 11] or higher)<br />
{{Warning|Enabling this feature might cause audio distortion, therefore it is disabled by default, see the [https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/11.0/ release notes] for more information.}}<br />
|+<br />
| enable-remixing || When the input and output have a different channel count (for example, outputting a 6 channel movie into a stereo sink), pulse can either remix all the channels (default, {{ic|yes}}) or just trivially map the channels by their name (left goes to left, right to right, all others ignored) when {{ic|no}}<br />
|+<br />
| system-instance || If set to {{ic|yes}}, run the daemon as a [https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/ system-wide] instance. [https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/ Highly discouraged] as it can introduce security issues. Useful on [[Xorg multiseat|Multiseat]] systems, or headless systems that have no real local users. Defaults to {{ic|no}}.<br />
|+<br />
| flat-volumes ||{{ic|flat-volumes}} scales the device-volume with the volume of the "loudest" application. For example, raising the VoIP call volume will raise the hardware volume and adjust the music-player volume so it stays where it was, without having to lower the volume of the music-player manually. Defaults to {{ic|yes}} upstream, but to {{ic|no}} within Arch. {{Note|The default behavior upstream can sometimes be confusing and some applications, unaware of this feature, can set their volume to 100% at startup, potentially blowing your speakers or your ears. This is why Arch defaults to the classic (ALSA) behavior by setting this to {{ic|no}}.}}<br />
|+<br />
| realtime-scheduling || If your [[kernel]] supports realtime scheduling (for instance, [[Realtime kernel]] or [[Linux-ck]]), set this to {{ic|yes}} to ensure PulseAudio can deliver low-latency glitch-free playback. You can adjust {{ic|realtime-priority}} as well to have it use the correct priority, especially when [[JACK]] is also running on the system.<br />
|+<br />
| nice-level || Since PulseAudio runs in userspace and involves inter-process communication, audio can be subject to dropouts if the daemon doesn't have enough CPU time to process the audio. The default usually is enough, but can be tweaked to give pulse the wanted priority over (or below) other applications.<br />
|+<br />
| exit-idle-time || If you want to run PulseAudio only when needed and use ALSA otherwise, you can set a delay in seconds after which the daemon will automatically shutdown after all clients are disconnected. Set it to -1 to disable this feature.<br />
|+<br />
| log-level || When debugging, you may want to increase the logging level of the daemon to see exactly why a specific module fails to load. High logging levels will sometimes print useful information such as detected minimum latency for the system, which can then be used to tweak {{ic|default-fragments}} and {{ic|default-fragment-size-msec}}.<br />
|+<br />
| default-sample-format || Usually doesn't need change, but if your sound card's native format is diffent performance and quality can be improved by setting the right format here.<br />
|+<br />
| default-sample-rate || The default sample rate user by pulse unless overriden at module level. Change this if your sound card doesn't support 44100Hz or if you wish to upsample all audio. See previous note about CPU usage.<br />
|+<br />
| alternate-sample-rate || To fix a common limitation where movies at 48000Hz were needlessly downsampled to 44100Hz, some modules support changing their sample rate dynamically to avoid resampling when possible. See manual for more in-depth information. Usually don't need any change.<br />
|+<br />
| default-channels || The default number of channels when not specified. Usually don't need any change as you can configure more channels on per-module basis.<br />
|+<br />
| default-fragments || Audio samples are split into multiple fragments of {{ic|default-fragment-size-msec}} each. The larger the buffer is, the less likely audio will skip when the system is overloaded. On the downside this will increase the overall latency. Increase this value if you have issues.<br />
|+<br />
| default-fragment-size-msec || The size in milliseconds of each fragment. This is the amount of data that will be processed at once by the daemon. TODO: Verify<br />
|}<br />
<br />
==== default.pa ====<br />
<br />
This file is a startup script and is used to configure modules. It is actually parsed and read after the daemon has finished initializing and additional commands can be sent at runtime using {{ic|$ pactl}} or {{ic|$ pacmd}}. The startup script can also be provided on the command line by starting PulseAudio in a terminal using {{ic|$ pulseaudio -nC}}. This will make the daemon load the CLI module and will accept the configuration directly from the command line, and output resulting information or error messages on the same terminal. This can be useful when debugging the daemon or just to test various modules before setting them permanently on disk. The manual page is quite self-explanatory, consult {{man|5|pulse-cli-syntax}} for the details of the syntax.<br />
<br />
{{tip|<br />
* Rather than being a complete copy, {{ic|~/.config/pulse/default.pa}} can start with the line {{ic|.include /etc/pulse/default.pa}} and then just override the defaults.<br />
* Run {{ic|<nowiki>$ pacmd list-sinks|egrep -i 'index:|name:'</nowiki>}} to list available sinks. The present default sink is marked with an asterisk.<br />
* Edit {{ic|~/.config/pulse/default.pa}} to insert/alter the set-default-sink command using the sink's name as the numbering cannot be guaranteed repeatable.<br />
}}<br />
<br />
==== client.conf ====<br />
This is the configuration file read by every PulseAudio client application. It is used to configure runtime options for individual clients. It can be used to set and configure the default sink and source statically as well as allowing (or disallowing) clients to automatically start the server if not currently running.<br />
<br />
=== Configuration command ===<br />
<br />
The main command to configure a server during runtime is {{ic|$ pacmd}}. Run {{ic|$ pacmd --help}} for a list options, or just run {{ic|$ pacmd}} to enter the shell interactive mode and {{ic|Ctrl+d}} to exit. All modifications will immediately be applied.<br />
<br />
Once your new settings have been tested and meet your needs, edit the {{ic|default.pa}} accordingly to make the change persistent. See [[PulseAudio/Examples]] for some basic settings.<br />
<br />
{{Tip|leave the {{ic|load-module module-default-device-restore}} line in the {{ic|default.pa}} file untouched. It will allow you to restart the server in its default state, thus dismissing any wrong setting.}}<br />
<br />
It is important to understand that the "sources" (processes, capture devices) and "sinks" (sound cards, servers, other processes) accessible and selectable through PulseAudio depend upon the current hardware "Profile" selected. These "Profiles" are those ALSA "pcms" listed by the command {{ic|aplay -L}}, and more specifically by the command {{ic|pacmd list-cards}}, which will include a line "index:", a list beginning "profiles:", and a line "active profile: <...>" in the output, among other things. "Profiles" correspond to different card input/output configurations, notably the number of available input/output channels.<br />
<br />
The "active profile" can be set with the command {{ic|pacmd set-card-profile INDEX PROFILE}}, with ''no'' comma separating INDEX and PROFILE, where INDEX is just the number on the line "index:" and a PROFILE name is everything shown from the beginning of any line under "profile:" to just ''before'' the colon and first space, as shown by the command {{ic|pacmd list-cards}}. For instance, {{ic|pacmd set-card-profile 0 output:analog-stereo+input:analog-stereo}}.<br />
<br />
It may be easier to select a "Profile" with a graphical tool like {{ic|pavucontrol}}, under the "Configuration" tab, or KDE System Settings, "Multimedia/Audio and Video Settings", under the "Audio Hardware Setup" tab. Each audio "Card", which are those devices listed by the command {{ic|aplay -l}}, or again by the command {{ic|pacmd list-cards}}, will have its own selectable "Profile". When a "Profile" has been selected, the then available "sources" and "sinks" can be seen by using the commands {{ic|pacmd list-sources}} and {{ic|pacmd list-sinks}}. Note that the "index" of the available sources and sinks will change each time a card profile is changed.<br />
<br />
The selected "Profile" can be an issue for some applications, especially the Adobe Flash players, typically {{ic|/usr/lib/mozilla/plugins/libflashplayer.so}} and {{ic|/usr/lib/PepperFlash/libpepflashplayer.so}}. Often, these Flash players will only work when one of the Stereo profiles is selected, and otherwise, will play video with no sound, or will simply "crash". When all else fails, you might try selecting a different profile.<br />
<br />
Of course, when configuring some variation of Surround Sound in PulseAudio, the appropriate Surround profile will have to be selected, before Surround Sound will work, or in order to do things like remap the speaker channels.<br />
<br />
== Running ==<br />
<br />
PulseAudio on Arch has {{ic|pulseaudio.socket}} enabled by default for the [[systemd/User]] instance. This means that PulseAudio will automatically start when needed.<br />
<br />
{{Note|<br />
* To disable {{ic|pulseaudio.socket}}, make sure that {{ic|$XDG_CONFIG_HOME/systemd/user/}} exists and run {{ic|systemctl --user mask pulseaudio.socket}}.<br />
* Many [[desktop environments]] support [[XDG Autostart]]. In those desktop environments, PulseAudio will be launched automatically regardless of the socket activation status.<br />
}}<br />
<br />
For more information, see [http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Running/ PulseAudio: Running].<br />
<br />
== Back-end configuration ==<br />
<br />
=== ALSA ===<br />
<br />
If you have applications that do not support PulseAudio explicitly but rely on ALSA, these applications will try to access the sound card directly via ALSA and will therefore bypass PulseAudio. PulseAudio will thus not have access to the sound card any more. As a result, all applications relying on PulseAudio will not be working any more, leading to [[PulseAudio/Troubleshooting#The only device shown is "dummy output" or newly connected cards are not detected|this issue]]. To prevent this, you will need to install the {{Pkg|pulseaudio-alsa}} package. It contains the necessary {{ic|/etc/asound.conf}} for configuring ALSA to use PulseAudio. Also make sure that {{ic|~/.asoundrc}} does not exist, as it would override the {{ic|/etc/asound.conf}} file.<br />
<br />
Please also install {{Pkg|lib32-libpulse}} and {{Pkg|lib32-alsa-plugins}} if you run a x86_64 system and want to have sound for 32-bit [[multilib]] programs like [[Wine]] and [[Steam]].<br />
<br />
To prevent applications from using ALSA's OSS emulation and bypassing PulseAudio (thereby preventing other applications from playing sound), make sure the module {{ic|snd_pcm_oss}} is not being loaded at boot. If it is currently loaded ({{ic|<nowiki>lsmod | grep oss</nowiki>}}), disable it by executing:<br />
# rmmod snd_pcm_oss<br />
<br />
==== Expose PulseAudio sources, sinks and mixers to ALSA ====<br />
Although {{Pkg|pulseaudio-alsa}} contains the necessary configuration file to allow ALSA applications to use PulseAudio's default device, ALSA's {{ic|pulse}} plugin is more versatile than that:<br />
<br />
{{hc|~/.asoundrc (or /etc/asound.conf)|2=<br />
# Create an alsa input/output using specific PulseAudio sources/sinks<br />
pcm.pulse-example1 {<br />
type pulse<br />
device "my-combined-sink" # name of a source or sink<br />
fallback "pulse-example2" # if combined not available<br />
}<br />
<br />
pcm.pulse-example2 {<br />
type pulse<br />
device "other-sound-card" # name of a source or sink<br />
# example: device "alsa_output.pci-0000_00_1b.0.analog-stereo"<br />
}<br />
<br />
# Create an alsa mixer using specific PulseAudio sources/sinks<br />
# these can be tested with "alsamixer -D pulse-example3"<br />
ctl.pulse-example3 {<br />
type pulse<br />
device "my-output" # name of source or sink to control<br />
<br />
# example: always control the laptop speakers:<br />
# device "alsa_output.pci-0000_00_1b.0.analog-stereo"<br />
fallback "pulse-example4" # supports fallback too<br />
}<br />
<br />
# Mixers also can control a specific source and sink, separately:<br />
ctl.pulse-example4 {<br />
type pulse<br />
sink "my-usb-headphones"<br />
source "my-internal-mic"<br />
<br />
# example: output to HDMI, record using internal<br />
sink "alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1"<br />
source "alsa_input.pci-0000_00_1b.0.analog-stereo"<br />
}<br />
<br />
# These can override the default mixer (example: for pnmixer integration)<br />
ctl.!default {<br />
type pulse<br />
sink "alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1"<br />
source "alsa_input.pci-0000_00_1b.0.analog-stereo"<br />
}<br />
}}<br />
<br />
The [http://git.alsa-project.org/?p=alsa-plugins.git;a=tree;f=pulse;hb=HEAD source code] can be read to know all available options.<br />
<br />
==== ALSA/dmix without grabbing hardware device ====<br />
<br />
{{Note|This section describes alternative configuration, which is generally '''not''' recommended.}}<br />
<br />
You may want to use ALSA directly in most of your applications while still being able to use applications which require PulseAudio at the same time. The following steps allow you to make PulseAudio use dmix instead of grabbing ALSA hardware device.<br />
<br />
* Remove package {{Pkg|pulseaudio-alsa}}, which provides compatibility layer between ALSA applications and PulseAudio. After this your ALSA apps will use ALSA directly without being hooked by Pulse.<br />
<br />
* Edit {{ic|/etc/pulse/default.pa}}.<br />
:Find and uncomment lines which load back-end drivers. Add '''device''' parameters as follows. Then find and comment lines which load autodetect modules.<br />
load-module module-alsa-sink '''device=dmix'''<br />
load-module module-alsa-source '''device=dsnoop'''<br />
# load-module module-udev-detect<br />
# load-module module-detect<br />
<br />
* ''Optional:'' If you use {{Pkg|kmix}} you may want to control ALSA volume instead of PulseAudio volume:<br />
$ echo export KMIX_PULSEAUDIO_DISABLE=1 > ~/.kde4/env/kmix_disable_pulse.sh<br />
$ chmod +x ~/.kde4/env/kmix_disable_pulse.sh<br />
<br />
* Now, reboot your computer and try running ALSA and PulseAudio applications at the same time. They both should produce sound simultaneously.<br />
:Use {{Pkg|pavucontrol}} to control PulseAudio volume if needed.<br />
<br />
=== OSS ===<br />
<br />
There are multiple ways of making OSS-only programs output to PulseAudio:<br />
<br />
==== ossp ====<br />
<br />
Install {{Pkg|ossp}} package and start {{ic|osspd.service}}.<br />
<br />
==== padsp wrapper ====<br />
<br />
Programs using OSS can work with PulseAudio by starting it with padsp (included with PulseAudio):<br />
<br />
$ padsp OSSprogram<br />
<br />
A few examples:<br />
<br />
$ padsp aumix<br />
$ padsp sox foo.wav -t ossdsp /dev/dsp<br />
<br />
You can also add a custom wrapper script like this: <br />
<br />
{{hc|/usr/local/bin/OSSProgram|<nowiki><br />
#!/bin/sh<br />
exec padsp /usr/bin/OSSprogram "$@"<br />
</nowiki>}}<br />
<br />
Make sure {{ic|/usr/local/bin}} comes before {{ic|/usr/bin}} in your '''PATH'''.<br />
<br />
=== GStreamer ===<br />
<br />
Install {{Pkg|gst-plugins-good}}, or {{AUR|gstreamer0.10-good-plugins}} if your intended program has a legacy [[GStreamer]] implementation.<br />
<br />
=== OpenAL ===<br />
<br />
OpenAL Soft should use PulseAudio by default, but can be explicitly configured to do so: {{hc|/etc/openal/alsoft.conf|2=drivers=pulse,alsa}}<br />
<br />
=== libao ===<br />
<br />
Edit the libao configuration file:<br />
{{hc|/etc/libao.conf|2=default_driver=pulse}}<br />
Be sure to remove the {{ic|1=dev=default}} option of the alsa driver or adjust it to specify a specific Pulse sink name or number. <br />
<br />
{{Note|You could possibly also keep the libao standard of outputting to the ''alsa'' driver and its default device if you install {{pkg|pulseaudio-alsa}} since the ALSA default device then '''is''' PulseAudio.}}<br />
<br />
== Equalizer ==<br />
<br />
{{Warning|The equalizer module is considered unstable and might be removed from PulseAudio. For more, see the [https://lists.freedesktop.org/archives/pulseaudio-discuss/2014-March/020174.html mailing list].}}<br />
<br />
PulseAudio has an integrated 10-band equalizer system. In order to use the equalizer do the following:<br />
<br />
Install {{Pkg|pulseaudio-equalizer}}:<br />
<br />
=== Load equalizer sink and dbus-protocol module ===<br />
<br />
$ pactl load-module module-equalizer-sink<br />
$ pactl load-module module-dbus-protocol<br />
<br />
=== GUI front-end ===<br />
<br />
run:<br />
<br />
$ qpaeq<br />
<br />
{{Note|If qpaeq has no effect, install {{pkg|pavucontrol}} and change "ALSA Playback on" to "FFT based equalizer on ..." while the media player is running.}}<br />
<br />
=== Load equalizer and dbus module on every boot ===<br />
<br />
Edit the {{ic|/etc/pulse/default.pa}} or {{ic|~/.config/pulse/default.pa}} file with your favorite editor and append the following lines:<br />
<br />
### Load the integrated PulseAudio equalizer and D-Bus module<br />
load-module module-equalizer-sink<br />
load-module module-dbus-protocol<br />
<br />
{{Note|The equalizer sink needs to be loaded after the master sink is already available.}}<br />
<br />
=== Alternative equalizers ===<br />
<br />
{{AUR|pulseaudio-equalizer-ladspa}} (based on {{Pkg|swh-plugins}}) can be used as an alternative to {{Pkg|pulseaudio-equalizer}}.<br />
<br />
{{AUR|pulseeffects}} applies peak limiting, compression, reverberation, auto volume and 15 bands equalization to Pulseaudio applications output.<br />
<br />
== Applications ==<br />
<br />
=== QEMU ===<br />
<br />
Refer to [[QEMU#Host]] for a detailed guide on how to configure pulseaudio within [[QEMU]].<br />
<br />
=== AlsaMixer.app ===<br />
<br />
Make {{AUR|alsamixer.app}} dockapp for the {{AUR|windowmaker}} use pulseaudio, e.g.<br />
$ AlsaMixer.app --device pulse<br />
<br />
Here is a two examples where the first one is for ALSA and the other one is for pulseaudio. You can run multiple instances of it. Use the {{ic|-w}} option to choose which of the control buttons to bind to the mouse wheel.<br />
# AlsaMixer.app -3 Mic -1 Master -2 PCM --card 0 -w 1<br />
# AlsaMixer.app --device pulse -1 Capture -2 Master -w 2<br />
<br />
{{Note|It can use only those output sinks that set as default.}}<br />
<br />
=== XMMS2 ===<br />
<br />
Make it switch to pulseaudio output<br />
$ nyxmms2 server config output.plugin pulse<br />
and to alsa<br />
$ nyxmms2 server config output.plugin alsa<br />
To make xmms2 use a different output sink, e.g.<br />
$ nyxmms2 server config pulse.sink alsa_output.pci-0000_04_01.0.analog-stereo.monitor<br />
<br />
See also the official guide [https://xmms2.org/wiki/Using_the_application].<br />
<br />
=== KDE Plasma Workspaces and Qt4 ===<br />
<br />
PulseAudio will automatically be used by KDE/Qt4 applications. It is supported by default in the KDE sound mixer. For more information see the [https://www.freedesktop.org/wiki/Software/PulseAudio/Desktops/KDE/ KDE page in the PulseAudio wiki].<br />
<br />
One useful tidbit from that page is that {{ic|load-module module-device-manager}} should be loaded. This usually happens automatically at login through the script {{ic|/usr/bin/start-pulseaudio-x11}}; if you find that the module is not loaded automatically you can consider adding it manually to {{ic|/etc/pulse/default.pa}}. See [[#Switch on connect]] for possible conflicts with the {{ic|module-switch-on-connect}}.<br />
<br />
If the phonon-gstreamer backend is used for Phonon, GStreamer should also be configured as described in [[#GStreamer]].<br />
<br />
=== Audacious ===<br />
<br />
[[Audacious]] natively supports PulseAudio. In order to use it, set Audacious Preferences -> Audio -> Current output plugin to 'PulseAudio Output Plugin'.<br />
<br />
=== Music Player Daemon (MPD) ===<br />
<br />
[http://mpd.wikia.com/wiki/PulseAudio configure] [[MPD]] to use PulseAudio. See also [[MPD/Tips and Tricks#PulseAudio]].<br />
<br />
=== MPlayer ===<br />
<br />
[[MPlayer]] natively supports PulseAudio output with the {{ic|-ao pulse}} option. It can also be configured to default to PulseAudio output, in {{ic|~/.mplayer/config}} for per-user, or {{ic|/etc/mplayer/mplayer.conf}} for system-wide:<br />
{{hc|/etc/mplayer/mplayer.conf|2=ao=pulse}}<br />
<br />
=== guvcview ===<br />
<br />
{{Pkg|guvcview}} when using the PulseAudio input from a [[Webcam]] may have the audio input suspended resulting in no audio being recorded. You can check this by executing:<br />
<br />
$ pactl list sources<br />
<br />
If the audio source is "suspended" then modifying the following line in {{ic|/etc/pulse/default.pa}} and changing:<br />
<br />
load-module module-suspend-on-idle<br />
to<br />
#load-module module-suspend-on-idle<br />
<br />
And then either restarting PulseAudio or your computer will only idle the input source instead of suspending it. guvcview will then correctly record audio from the device.<br />
<br />
== Apple AirPlay2 devices ==<br />
<br />
Install {{Pkg|paprefs}} and {{Pkg|avahi}}.<br />
<br />
Make sure the Avahi daemon to be installed and running with {{ic|$ systemctl start avahi-daemon}}<br />
<br />
Run {{ic|$ paprefs}}. In the {{ic|Network Access tab}}, turn on {{ic|Make discoverable Apple AirTunes}} sound devices available locally, then close the application.<br />
<br />
Restart pulseaudio, then hopefully your AirPlay devices will be auto discovered through {{ic|module-raop-discover}} and automagically turn up as an output device.<br />
<br />
== Networked audio ==<br />
<br />
{{Expansion|please allow for some time for me to port the most important information here -- [[User:Nodiscc|Nodiscc]]|Talk:PulseAudio#Networked_audio}}<br />
Play sound through the outputs of another computer on the network<br />
<br />
=== Basic setup with direct connection ===<br />
<br />
===== On the server =====<br />
<br />
Edit {{ic|~/.config/pulse/default.pa}} or {{ic|/etc/pulse/default.pa}} (or {{ic|/etc/pulse/system.pa}} if PulseAudio is started in system mode) and add the following line:<br />
<br />
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;172.16.0.0/16<br />
<br />
Here only client from the IPs or IPs range specified here can stream sound.<br />
<br />
To allow access from everywhere:<br />
<br />
load-module module-native-protocol-tcp auth-anonymous=true<br />
<br />
{{Note| If {{ic|auth-ip-acl}} neither {{ic|auth-anonymous}} are specified, authentification is done via {{ic|~/.pulse-cookie}} which must be the same on clients and server.}}<br />
<br />
By default PulseAudio listens on port {{ic|tcp/4713}} for incoming connections, you may need to open this port in your [[firewall]].<br />
<br />
===== On the client =====<br />
<br />
Edit {{ic|~/.config/pulse/client.conf}} or {{ic|/etc/pulse/client.conf}}, to respectively apply this directive to one user or to all, and add :<br />
<br />
default-server = ''server-address''<br />
<br />
''server-address'' can be a simple domain-name or IPv4, for more see [https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/ServerStrings/ the documentation]<br />
<br />
It is also possible to set the server address in the environment variable {{ic|$PULSE_SERVER}}.<br />
<br />
== Tips and tricks ==<br />
<br />
{{Merge|PulseAudio/Examples|Same topic.}}<br />
<br />
=== Keyboard volume control ===<br />
<br />
Map the following commands to your volume keys: {{ic|XF86AudioRaiseVolume}}, {{ic|XF86AudioLowerVolume}}, {{ic|XF86AudioMute}}. See [[Extra keyboard keys in Xorg]] for details.<br />
<br />
First find out which sink corresponds to the audio output you'd like to control.<br />
To list available sinks:<br />
pactl list sinks short<br />
<br />
Suppose sink 0 is to be used, to raise the volume:<br />
sh -c "pactl set-sink-mute 0 false ; pactl set-sink-volume 0 +5%"<br />
<br />
To lower the volume:<br />
sh -c "pactl set-sink-mute 0 false ; pactl set-sink-volume 0 -5%"<br />
<br />
To mute/unmute the volume:<br />
pactl set-sink-mute 0 toggle<br />
<br />
To mute/unmute the microphone:<br />
pactl set-source-mute 1 toggle<br />
<br />
{{Tip|To have keyboard shortcuts operate always on the default sink, specify {{ic|@DEFAULT_SINK@}} as the sink number, for example {{ic|pactl set-sink-mute @DEFAULT_SINK@ toggle}}.}}<br />
<br />
=== Play sound from a non-interactive shell (systemd service, cron) === <br />
<br />
Set {{ic|XDG_RUNTIME_DIR}} before the command (replace {{ic|''user_id''}} with the ID of the user running PulseAudio):<br />
<br />
XDG_RUNTIME_DIR=/run/user/''user_id'' paplay /usr/share/sounds/freedesktop/stereo/complete.oga<br />
<br />
Or use {{ic|machinectl}}:<br />
<br />
# machinectl shell .host --uid=''user_id'' /usr/bin/paplay /usr/share/sounds/freedesktop/stereo/complete.oga<br />
<br />
=== X11 Bell Events ===<br />
<br />
To get pulseaudio to handle X11 bell events, run the following commands after the X11 session has been started:<br />
<br />
pactl upload-sample /usr/share/sounds/freedesktop/stereo/bell.oga x11-bell<br />
pactl load-module module-x11-bell sample=x11-bell display=$DISPLAY<br />
<br />
To adjust the volume of the X11 bell, run the following command:<br />
<br />
xset b 100<br />
<br />
100 is a percentage. This requires the {{Pkg|xorg-xset}} package. See [[Autostarting]] for a way to run these commands automatically when the X11 session is started.<br />
<br />
=== Switch on connect ===<br />
This is a module used to switch the output sound to the newly connected device. For example, if you plug in a USB headset, the output will be switched to that. If you unplug it, the output will be set back to the last device. This used to be quite buggy but got a lot of attention in PulseAudio 8.0 and should work quite well now.<br />
<br />
If you just want to test the module then you can load it at runtime by calling:<br />
$ pactl load-module module-switch-on-connect<br />
<br />
If you want to make the change persistent you will have to add it to your local pulseaudio settings or to /etc/pulse/default.pa (system wide effect). In either case, add this line:<br />
load-module module-switch-on-connect<br />
<br />
{{Accuracy|Editing {{ic|/usr/bin/start-pulseaudio-x11}} will not survive package upgrade. The offending module can be unloaded in the config before loading {{ic|module-switch-on-connect}}, see [[Talk:Bluetooth_headset#GDMs_pulseaudio_instance_captures_bluetooth_headset]].}}<br />
<br />
On KDE/Plasma5 you should furthermore disable module-device-manager. As soon as Plasma5 is started it loads (via start-pulseaudio-x11) the module module-device-manager for pulseaudio to manage the devices. But that module apparently conflicts with module-switch-on-connect. Therefore you should disable that module by editing /bin/start-pulseaudio-x11 and commenting the lines for KDE. Simply logout and login again and in order to renew your pulseaudio session. On connect switching should now work properly.<br />
<br />
===Script for switching analogic outputs===<br />
<br />
Some sound cards present the option of multiple analog outputs, being switchable through using Pulseaudio profiles. But switching manually can become a chore, so you can use the following commands to switch it:<br />
$ pactl set-sink-port 'number of the card' 'port'<br />
<br />
This will set the default output to whatever port you chose.<br />
Example:<br />
$ pactl set-sink-port 0 "analog-output;output-speaker" <br />
<br />
The values can be easily obtained using:<br />
$ pactl list<br />
<br />
Current output can be obtained through:<br />
$ pactl list sinks | grep "active profile"| cut -d ' ' -f 3-<br />
<br />
This process can be automated through a simple script. This script then can be given a shortcut by the user:<br />
<br />
{{hc|~/pa.sh (or anything the user wants)|<nowiki><br />
#!/bin/bash<br />
# This script uses kdialog notification to warn the user of the currently swapped to profile. User could adapt it to their needs or change it.<br />
<br />
CURRENT_PROFILE=$(pactl list sinks | grep "active profile"| cut -d ' ' -f 3-)<br />
<br />
if [ "$CURRENT_PROFILE" = "analog-output;output-speaker" ] ; then<br />
pactl set-sink-port 0 "analog-output;output-headphones-1"<br />
kdialog --title "Pulseaudio" --passivepopup "Headphone" 2 & <br />
else <br />
pactl set-sink-port 0 "analog-output;output-speaker" <br />
kdialog --title "Pulseaudio" --passivepopup "Speaker" 2 &<br />
fi<br />
</nowiki>}}<br />
<br />
This script is intended to swap between two profiles. First checking the current profile then swapping it. Users are required to change the field 'active profile' according to the language pactl reports. Users might need to change the number of the card and the output to fit their machine.<br />
<br />
== Troubleshooting ==<br />
<br />
See [[PulseAudio/Troubleshooting]].<br />
<br />
== See also ==<br />
<br />
* [https://www.freedesktop.org/wiki/Software/PulseAudio/ PulseAudio official website], including documentation<br />
* [https://gavv.github.io/blog/pulseaudio-under-the-hood/ Pulseaudio under the hood]</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=301071Lenovo ThinkPad X1 Carbon2014-02-24T08:38:31Z<p>Maccyber: /* SNA */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved than UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginners' guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
Use [[archboot]] to install or see https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cfg:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Comes with USB->Ethernet plug. Works out of the box.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== Brightness control ====<br />
Default brightness adjustment keys work but need to be pressed multiple times to increase/decrease the screen brightness. Writing your own acpi handlers for those buttons seems to have no effect. In order to use it properly you need to append a new kernel parameter and make new grub config. Make sure to escape double quotes.<br />
{{hc|/etc/default/grub|<nowiki><br />
GRUB_CMDLINE_LINUX_DEFAULT="acpi_osi=\"!Windows 2012\""<br />
</nowiki>}}<br />
sudo grub-mkconfig -o /boot/grub/grub.cfg<br />
<br />
Read more about why it's necessary at [[Backlight#ACPI]]<br />
<br />
Some depending on their desktop environment may lack granularity while changing brightness. This is due to the DE (e.g. gnome-settings-daemon) along with the internal graphics module changing the brightness when brightness adjustment keys are pressed causing multiple steps per press. To work around this one can add the following to their boot parameters:<br />
video.brightness_switch_enabled=0<br />
<br />
==== EDID bug ====<br />
<br />
{{Note|Update: This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.}}<br />
<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use [[slim]] it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with {{pkg|modemmanager}} installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
<br />
See [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module this link] for more info.<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
* Video (follow [[DisplayLink]] guide)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=287419Lenovo ThinkPad X1 Carbon2013-12-09T14:10:30Z<p>Maccyber: /* UEFI */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
Use [[archboot]] to install or see https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cfg:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Comes with USB->Ethernet plug. Works out of the box.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
{{Note|Update: This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.}}<br />
<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use [[slim]] it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with {{pkg|modemmanager}} installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
<br />
See [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module this link] for more info.<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
* Video (follow [[DisplayLink]] guide)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=264715Lenovo ThinkPad X1 Carbon2013-06-29T20:14:40Z<p>Maccyber: /* Wired */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Comes with USB->Ethernet plug. Works out of the box.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
{{Note|Update: This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.}}<br />
<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use [[slim]] it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with {{pkg|modemmanager}} installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
<br />
See [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module this link] for more info.<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
* Video (follow [[DisplayLink]] guide)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263783Lenovo ThinkPad X1 Carbon2013-06-21T19:09:13Z<p>Maccyber: /* EDID bug */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
{{Note|Update: This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.}}<br />
<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use [[slim]] it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
<br />
See [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module this link] for more info.<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
* Video (follow [[DisplayLink]] guide)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263750Lenovo ThinkPad X1 Carbon2013-06-21T10:32:27Z<p>Maccyber: /* GPS */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
{{Note|Update: This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.}}<br />
<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
<br />
See [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module this link] for more info.<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
* Video (follow [[DisplayLink]] guide)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263749Lenovo ThinkPad X1 Carbon2013-06-21T10:32:17Z<p>Maccyber: /* GPS */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
{{Note|Update: This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.}}<br />
<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
<br />
See [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module this] for more info.<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
* Video (follow [[DisplayLink]] guide)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263748Lenovo ThinkPad X1 Carbon2013-06-21T10:32:03Z<p>Maccyber: /* GPS */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
{{Note|Update: This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.}}<br />
<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
<br />
See [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module] for more info.<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
* Video (follow [[DisplayLink]] guide)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263744Lenovo ThinkPad X1 Carbon2013-06-21T09:51:37Z<p>Maccyber: /* Docking */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
{{Note|Update: This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.}}<br />
<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
* Video (follow [[DisplayLink]] guide)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263743Lenovo ThinkPad X1 Carbon2013-06-21T09:51:28Z<p>Maccyber: /* Docking */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
{{Note|Update: This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.}}<br />
<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
* Video (follow [[DisplayLink]])</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263742Lenovo ThinkPad X1 Carbon2013-06-21T09:51:16Z<p>Maccyber: /* Docking */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
{{Note|Update: This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.}}<br />
<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
* Video (follow [DisplayLink])</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263734Lenovo ThinkPad X1 Carbon2013-06-21T09:03:20Z<p>Maccyber: /* Docking */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
{{Note|Update: This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.}}<br />
<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
<br />
This don't work:<br />
* Video (did not give it a real effort, but didn't work out of the box)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263733Lenovo ThinkPad X1 Carbon2013-06-21T09:00:19Z<p>Maccyber: /* EDID bug */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
{{Note|Update: This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.}}<br />
<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
<br />
This don't work:<br />
* VGA (did not give it a real effort, but didn't work out of the box)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263732Lenovo ThinkPad X1 Carbon2013-06-21T09:00:04Z<p>Maccyber: /* EDID bug */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
{{Note|'''Update:''' This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.}}<br />
<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
<br />
This don't work:<br />
* VGA (did not give it a real effort, but didn't work out of the box)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263731Lenovo ThinkPad X1 Carbon2013-06-21T08:58:41Z<p>Maccyber: /* EDID bug */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
'''Update:''' This is due to the use of a mini-DP->VGA-adapter. Tested without bugs with a mini-DP->DP-cable.<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
<br />
This don't work:<br />
* VGA (did not give it a real effort, but didn't work out of the box)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263624Lenovo ThinkPad X1 Carbon2013-06-20T11:42:22Z<p>Maccyber: /* Docking */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
This may be to the use of a DP->VGA-adapter.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported[http://www.displaylink.org/forum/showthread.php?t=1748], I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
<br />
This don't work:<br />
* VGA (did not give it a real effort, but didn't work out of the box)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263615Lenovo ThinkPad X1 Carbon2013-06-20T10:43:16Z<p>Maccyber: /* Docking */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
This may be to the use of a DP->VGA-adapter.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the video for USB 3 Docking Stations currently isn't supported, I had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
<br />
This don't work:<br />
* VGA (did not give it a real effort, but didn't work out of the box)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263611Lenovo ThinkPad X1 Carbon2013-06-20T10:28:23Z<p>Maccyber: /* Docking */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
This may be to the use of a DP->VGA-adapter.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the USB 3 Docking Stations currently isn't supported, i had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
<br />
This don't work:<br />
* VGA (did not give it a real effort, but didn't work out of the box)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263608Lenovo ThinkPad X1 Carbon2013-06-20T10:20:13Z<p>Maccyber: /* Docking */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
This may be to the use of a DP->VGA-adapter.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the USB 3 Docking Stations currently isn't supported, i had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video|USB Port Replicator with Digital Video (USB 2.0)]<br />
<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
<br />
This don't work:<br />
* VGA (did not give it a real effort, but didn't work out of the box)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263607Lenovo ThinkPad X1 Carbon2013-06-20T10:20:05Z<p>Maccyber: /* Docking */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
This may be to the use of a DP->VGA-adapter.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the USB 3 Docking Stations currently isn't supported, i had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video|USB Port Replicator with Digital Video (USB 2.0)]<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
<br />
This don't work:<br />
* VGA (did not give it a real effort, but didn't work out of the box)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263606Lenovo ThinkPad X1 Carbon2013-06-20T10:19:47Z<p>Maccyber: /* Docking */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
This may be to the use of a DP->VGA-adapter.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the USB 3 Docking Stations currently isn't supported, i had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video|USB Port Replicator with Digital Video]<br />
This works:<br />
* USB-devices connected to dock<br />
* Audio<br />
* Microphone<br />
* Ethernet<br />
<br />
This don't work:<br />
* VGA (did not give it a real effort, but didn't work out of the box)</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263604Lenovo ThinkPad X1 Carbon2013-06-20T10:17:38Z<p>Maccyber: /* Hardware */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
This may be to the use of a DP->VGA-adapter.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Other hardware ==<br />
<br />
=== Docking ===<br />
This model comes without a docking port.<br />
<br />
Since the USB 3 Docking Stations currently isn't supported, i had to go for [http://www.thinkwiki.org/wiki/USB_Port_Replicator_with_Digital_Video|USB Port Replicator with Digital Video]</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263574Lenovo ThinkPad X1 Carbon2013-06-20T09:40:38Z<p>Maccyber: /* Video */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000. See [[intel]] for more info.<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
This may be to the use of a DP->VGA-adapter.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263573Lenovo ThinkPad X1 Carbon2013-06-20T09:31:10Z<p>Maccyber: /* EDID bug */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
This may be to the use of a DP->VGA-adapter.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline and set the preferred resolution with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263572Lenovo ThinkPad X1 Carbon2013-06-20T09:29:54Z<p>Maccyber: /* EDID bug */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
This may be to the use of a DP->VGA-adapter.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting in slim.conf<br />
{{hc|/etc/slim.conf|sessionstart_cmd dp-output}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263571Lenovo ThinkPad X1 Carbon2013-06-20T09:28:39Z<p>Maccyber: /* Video */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
==== SNA ====<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
==== EDID bug ====<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
This may be to the use of a DP->VGA-adapter.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting<br />
sessionstart_cmd dp-output<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263570Lenovo ThinkPad X1 Carbon2013-06-20T09:27:50Z<p>Maccyber: /* Video */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
There is a bug getting EDID for the external screen when connected at bootup.<br />
This may be to the use of a DP->VGA-adapter.<br />
<br />
I get this error message<br />
[ 93.736330] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up<br />
<br />
If external screen is connected after bootup everything works fine.<br />
<br />
I had to manually add a modeline with this script.<br />
{{hc|/usr/local/bin/dp-output|<nowiki><br />
# Monitor setup<br />
EXTERNAL_OUTPUT="DP1"<br />
INTERNAL_OUTPUT="LVDS1"<br />
<br />
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | if [ $? -eq 0 ]; then<br />
xrandr --newmode 1920x1200_60 154 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync<br />
xrandr --addmode DP1 1920x1200_60<br />
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --mode 1920x1200_60<br />
fi<br />
</nowiki>}}<br />
<br />
And add the script to startup at X-session start. Since I use slim it`s done with this setting<br />
sessionstart_cmd dp-output<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263422Lenovo ThinkPad X1 Carbon2013-06-19T07:29:44Z<p>Maccyber: /* Power saving options */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263418Lenovo ThinkPad X1 Carbon2013-06-19T07:20:15Z<p>Maccyber: /* Power saving options */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Power saving options ==<br />
See [[power saving]] for more info.<br />
<br />
{{hc|powersave|<nowiki><br />
# Autosuspend USB-devices<br />
for i in /sys/bus/usb/devices/*/power/autosuspend; do<br />
echo 1 | tee $i<br />
done<br />
<br />
# Enable PM for PCI devices<br />
for i in /sys/bus/pci/devices/*/power/control; do<br />
echo auto | tee $i<br />
done<br />
<br />
# Enable SATA link PM<br />
for i in /sys/class/scsi_host/*/link_power_management_policy; do<br />
echo min_power | tee $i<br />
done<br />
<br />
# Set VM writeback to 10 (lose 10 secs work on crash)<br />
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs<br />
<br />
# Disable nmi watchdog<br />
echo 0 > /proc/sys/kernel/nmi_watchdog<br />
<br />
# Turn on powersave for audio module<br />
echo Y > /sys/module/snd_hda_intel/parameters/power_save_controller<br />
<br />
# Set to powersave mode after 10sec without audio<br />
echo 10 > /sys/module/snd_hda_intel/parameters/power_save<br />
</nowiki>}}</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263417Lenovo ThinkPad X1 Carbon2013-06-19T07:19:44Z<p>Maccyber: /* Power saving options */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Power saving options ==<br />
See [[power saving]] for more info.<br />
<br />
{{hc|powersave|<nowiki><br />
# Autosuspend USB-devices<br />
for i in /sys/bus/usb/devices/*/power/autosuspend; do<br />
echo 1 | tee $i<br />
done<br />
<br />
# Enable PM for PCI devices<br />
for i in /sys/bus/pci/devices/*/power/control; do<br />
echo auto | tee $i<br />
done<br />
<br />
# Enable SATA link PM<br />
for i in /sys/class/scsi_host/*/link_power_management_policy; do<br />
echo min_power | tee $i<br />
done<br />
<br />
# Set VM writeback to 10 (lose 10 secs work on crash)<br />
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs<br />
<br />
# Disable nmi watchdog<br />
echo 0 > /proc/sys/kernel/nmi_watchdog<br />
<br />
# Turn on powersave for audio module<br />
echo Y > /sys/module/snd_hda_intel/parameters/power_save_controller<br />
<br />
# Set to powersave mode after 10sec without audio<br />
echo 10 > /sys/module/snd_hda_intel/parameters/power_save<br />
<nowiki>}}</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263415Lenovo ThinkPad X1 Carbon2013-06-19T07:12:45Z<p>Maccyber: </p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on<br />
<br />
== Power saving options ==</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263414Lenovo ThinkPad X1 Carbon2013-06-19T07:12:06Z<p>Maccyber: /* Bluetooth */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with:<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263413Lenovo ThinkPad X1 Carbon2013-06-19T07:11:49Z<p>Maccyber: /* Bluetooth */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263412Lenovo ThinkPad X1 Carbon2013-06-19T07:11:44Z<p>Maccyber: /* Bluetooth */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
<br />
[bluetooth]# power on</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263411Lenovo ThinkPad X1 Carbon2013-06-19T07:11:30Z<p>Maccyber: /* Hardware */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space<br />
<br />
=== Bluetooth ===<br />
Works out of the box.<br />
Test with<br />
$ systemctl start bluetooth<br />
$ bluetoothctl<br />
[bluetooth]# power on</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263410Lenovo ThinkPad X1 Carbon2013-06-19T07:06:43Z<p>Maccyber: /* GPS */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use e.g. {{AUR|foxtrotgps}} in [[AUR]].<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263409Lenovo ThinkPad X1 Carbon2013-06-19T07:03:57Z<p>Maccyber: /* WWAN (Mobile broadband) */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use for example foxtrotgps in AUR.<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263408Lenovo ThinkPad X1 Carbon2013-06-19T07:03:42Z<p>Maccyber: /* GPS */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use for example foxtrotgps in AUR.<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263407Lenovo ThinkPad X1 Carbon2013-06-19T07:03:03Z<p>Maccyber: /* KMS */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
You also have to enable VT in BIOS.<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use for example foxtrotgps in AUR.<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263406Lenovo ThinkPad X1 Carbon2013-06-19T07:00:15Z<p>Maccyber: /* Fingerprint Reader */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
Also enable VT in BIOS<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
$ gpasswd -a <username> plugdev<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use for example foxtrotgps in AUR.<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263405Lenovo ThinkPad X1 Carbon2013-06-19T06:59:33Z<p>Maccyber: /* UEFI */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
Also enable VT in BIOS<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
{{ic|gpasswd -a <username> plugdev}}<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use for example foxtrotgps in AUR.<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263404Lenovo ThinkPad X1 Carbon2013-06-19T06:56:47Z<p>Maccyber: /* KMS */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ sudo mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
$ mkinitcpio -p linux<br />
<br />
Also enable VT in BIOS<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
{{ic|gpasswd -a <username> plugdev}}<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use for example foxtrotgps in AUR.<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263403Lenovo ThinkPad X1 Carbon2013-06-19T06:56:06Z<p>Maccyber: /* Wireless */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ sudo mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
----<br />
{{ic|lspci}} ''output: Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)''<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
{{ic|mkinitcpio -p linux}} <br />
<br />
Also enable VT in BIOS<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
{{ic|gpasswd -a <username> plugdev}}<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use for example foxtrotgps in AUR.<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263402Lenovo ThinkPad X1 Carbon2013-06-19T06:55:28Z<p>Maccyber: /* Fingerprint Reader */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ sudo mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
{{ic|mkinitcpio -p linux}} <br />
<br />
Also enable VT in BIOS<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
{{ic|gpasswd -a <username> plugdev}}<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lsusb}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use for example foxtrotgps in AUR.<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263401Lenovo ThinkPad X1 Carbon2013-06-19T06:55:14Z<p>Maccyber: /* WWAN (Mobile broadband) */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ sudo mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
{{ic|mkinitcpio -p linux}} <br />
<br />
Also enable VT in BIOS<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
{{ic|gpasswd -a <username> plugdev}}<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lspci}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lsusb}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use for example foxtrotgps in AUR.<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263400Lenovo ThinkPad X1 Carbon2013-06-19T06:54:35Z<p>Maccyber: /* WWAN (Mobile broadband) */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ sudo mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
{{ic|mkinitcpio -p linux}} <br />
<br />
Also enable VT in BIOS<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
{{ic|gpasswd -a <username> plugdev}}<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lspci}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
----<br />
{{ic|lspci}} ''output: 0bdb:1926 Ericsson Business Mobile Networks BV''<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use for example foxtrotgps in AUR.<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space</div>Maccyberhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon&diff=263399Lenovo ThinkPad X1 Carbon2013-06-19T06:53:08Z<p>Maccyber: /* Fingerprint Reader */</p>
<hr />
<div>[[Category:Lenovo]]<br />
== Model description ==<br />
<br />
Lenovo ThinkPad X1 Carbon (X1C).<br />
There is also a touch version. Comes without optical drive. <br />
Has UEFI BIOS with BIOS-legacy fallback mode.<br />
<br />
{{tip| A great resource for thinkpads is<br />
http://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
=== Legacy-BIOS ===<br />
<br />
This procedure is far less involved then UEFI and works perfectly.<br />
<br />
In order to turn off UEFI booting you will need to boot into your BIOS and change the boot mode to Legacy. Afterward, follow the [[Beginner's Guide]] for standard installation instructions.<br />
<br />
=== UEFI ===<br />
<br />
See https://bbs.archlinux.org/viewtopic.php?pid=1288500#p1288500<br />
<br />
1. You follow the guide from here and skip the part about errors and refind: [[Unified_Extensible_Firmware_Interface#Create_UEFI_bootable_USB_from_ISO|Create_UEFI_bootable_USB_from_ISO]]<br />
<br />
2. Make sure you USB is mounted to /boot/efi and install grub, like so:<br />
$ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/ --recheck --debug<br />
<br />
OBS: You can remove the entry from your EFI bootmanger, with efibootmgr by issuing:<br />
$ efibootmgr -b XX -B<br />
3. Now you can choose if you wanna hack you grub.cfg or use the custom config in grub.d. Either way generate the grub.cf:<br />
$ grub-mkconfig -o /boot/efi/grub/grub.cfg<br />
<br />
4. Make certain appropriate changes have been made to grub.cfg. My working example, which could use cleaning:<br />
{{hc|/etc/grub.d/10_linux|<nowiki><br />
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry 'Arch Linux test' {<br />
load_video<br />
set gfxpayload=keep<br />
insmod gzio<br />
insmod part_gpt<br />
insmod ext2<br />
set root='hd0,gpt1'<br />
if [ x$feature_platform_search_hint = xy ]; then<br />
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 B35D-FE34<br />
else<br />
search --no-floppy --fs-uuid --set=root B35D-FE34<br />
fi<br />
echo 'Loading Linux core repo kernel ...'<br />
linux /arch/boot/x86_64/vmlinuz root=UUID=B35D-FE34 ro archisobasedir=arch archisolabel=ARCH_201306<br />
echo 'Loading initial ramdisk ...'<br />
initrd /arch/boot/x86_64/archiso.img<br />
}<br />
<br />
<br />
### END /etc/grub.d/10_linux ###<br />
</nowiki>}}<br />
<br />
5. Move the grub.efi to overwrite the archiso supplied one (which btw works on my desktop. I guess GRUB includes more workarounds for buggy firmware from manufactureres. See this video, if you have time: http://mjg59.dreamwidth.org/10014.html<br />
$ sudo mv /boot/efi/EFI/arch_grub/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi<br />
<br />
Success. Somethings are implied, like GPT partitiontable etc.<br />
<br />
== Hardware ==<br />
<br />
Almost everything works out of the box.<br />
<br />
=== Audio ===<br />
Sound works out of the box.<br />
<br />
=== Network ===<br />
<br />
==== Wired ====<br />
<br />
Not tested.<br />
<br />
==== Wireless ====<br />
Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)<br />
<br />
Works out of the box. Uses the following module<br />
* iwlwifi<br />
<br />
=== Touchscreen ===<br />
<br />
Works out of the box.<br />
Haven't looked for possibilities to configure multi-touch.<br />
<br />
=== Video ===<br />
<br />
The video card installed is Intel HD Graphics 4000<br />
<br />
Install the video driver with {{ic|pacman -S xf86-video-intel}}<br />
<br />
To use [[Intel Graphics#Tips_and_tricks|SNA acceleration method]] add <br />
<br />
{{hc|/etc/X11/xorg.conf.d/20-intel.conf|<nowiki><br />
Section "Device"<br />
Identifier "Intel Graphics"<br />
Driver "intel"<br />
Option "AccelMethod" "sna"<br />
EndSection<br />
</nowiki>}}<br />
<br />
=== KMS ===<br />
Get [[KMS]] working by adding i915 to the modules line <br />
{{hc|/etc/mkinitcpio.conf|<nowiki>MODULES="i915"</nowiki>}}<br />
<br />
{{ic|mkinitcpio -p linux}} <br />
<br />
Also enable VT in BIOS<br />
<br />
=== Webcam ===<br />
Works out of the box. Tested with guvcview<br />
<br />
=== Fingerprint Reader ===<br />
<br />
{{AUR|fingerprint-gui}} from the [[AUR]] is already patched to work with the X1's newer fingerprint reader. To get the gui's dropdown to recognize your device, you'll have to add your user to the {{ic|plugdev}} group:<br />
<br />
{{ic|gpasswd -a <username> plugdev}}<br />
<br />
See [[fingerprint-gui]] for more information about config<br />
<br />
----<br />
{{ic|lspci}} ''output: 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)''<br />
<br />
=== WWAN (Mobile broadband) ===<br />
<br />
0bdb:1926 Ericsson Business Mobile Networks BV<br />
<br />
This model includes a [http://www.thinkwiki.org/wiki/Ericsson_H5321_gw_Mobile_Broadband_Module Ericsson H5321gw] adapter that can be used as a mobile broadband adapter and GPS.<br />
<br />
The SIM-card must be inserted in the back of the laptop.<br />
<br />
Add text to the following file and reboot<br />
<br />
{{hc|/etc/modprobe.d/avoid-mbib.conf|<nowiki>options cdc_ncm prefer_mbim=N</nowiki>}}<br />
<br />
<br />
Tested OK with [[networkmanager]] with [[modemmanager]] installed<br />
<br />
=== GPS ===<br />
<br />
Install gpsd from extra and mbm-gpsd-git from AUR.<br />
Add this to the following file<br />
{{hc|/etc/udev/rules.d/99-mbm.rules|<nowiki><br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"<br />
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"<br />
</nowiki>}}<br />
<br />
Reboot to reload udev rules.<br />
<br />
Run {{ic|sudo mbm-gpsd}}<br />
<br />
See if there's GPS-output<br />
{{ic|cat /dev/gps0}}<br />
<br />
Run {{ic|sudo gpsd -b -N /dev/gps0}}<br />
<br />
To test it {{ic|xgps}}<br />
<br />
Or use for example foxtrotgps in AUR.<br />
<br />
=== Keyboard backlight ===<br />
Works out of the box. Use FN+Space</div>Maccyber