From 4a5edd1019f32bea397700d9e04b51bc7ac813cb Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 13 Dec 2018 13:58:55 +0100 Subject: some more fixing in the a1211 article --- content/blog/archlinux-macbook-a1211.md | 42 ++++++++++++++++----------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/content/blog/archlinux-macbook-a1211.md b/content/blog/archlinux-macbook-a1211.md index 7da40cf..4020dbb 100644 --- a/content/blog/archlinux-macbook-a1211.md +++ b/content/blog/archlinux-macbook-a1211.md @@ -39,7 +39,7 @@ This can be done in the *Disk Utility.app*, just leave EFI in peace, set OSX to 64 GB and assign the rest of the hard disk as free space. Prepare the USB stick for installation, I had no luck with the standard ISO, -but a crawfted USB-stick worked: +but a hand-crafted USB-stick worked: ``` hdiutil convert -format UDRW -o archlinux-2018.09.01-x86_64.img archlinux-2018.09.01-x86_64.iso @@ -59,7 +59,7 @@ causing trouble all along. I didn't take ReFind as I didn't expect the failing to build with more modern 32-bit binutils and gcc. I installed a 32-bit GRUB onto the EFI partition as a second boot option -along to OSX. This one then boots ArchLinux. This is easier than to try +along to OSX. This one then boots ArchLinux. This is easier than trying to load a 64-bit kernel with kernel EFI stub support from an 32-bit EFI environemnt with systemd-boot. @@ -84,24 +84,24 @@ All I got was the following kernel and Xorg error messages: [31.041] (EE) open /dev/dri/card0: No such file or directory ``` -So this basically translates into: "I don't have a direct rendering interface, +So this basically translates to: "I don't have a direct rendering interface, because there is no video card, because there is no BIOS for that card". -The idea was to extract the VESA BIOS on a distribution which handles +The key idea was to extract the VESA BIOS on a distribution which handles the KMS switching correctly (in my case an old Ubuntu 10). ``` dd if=/dev/mem of=vbios.bin bs=65536 skip=12 count=1 ``` -Verify that indeed you got the right firmware. There is an error message +Verify that you actually got the right firmware. There is an error message when booting the kernel saying: ``` [2.052742] radeon 0000:01:00.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0xa1a1 ``` -so we expect to find that signature in the *vbios.bin* file: +so we expect to find that signature at the beginning of the *vbios.bin* file: ``` hexdump -C vbios.bin | head -n 1 @@ -120,8 +120,8 @@ options fail. My version of the module is [here](/text/blog/archlinux-macbook-a1211/radeon_bios.c), check out function *radeon_read_bios_from_firmware* and the code calling that function. -Now, Archlinux needs the Radeon driver for KMS as early as possible, so -I thought it's a nice idea to put it into the init-RAM-disk: +In order to use the Radeon driver for KMS as early as possible, +I put it into the init-RAM-disk: So, I added to */etc/mkinitcpio.conf* and rebuilt the ram disks: @@ -178,7 +178,7 @@ You will also need https://aur.archlinux.org/packages/isight-firmware-tools/. It contains tools to extract the file containg the firmware called *isight.fw* from *AppleUSBVideoSupport*. -Finally it contains an udev rule in */etc/udev/rules.d/isight.rules* then makes +Finally it contains an udev rule in */etc/udev/rules.d/isight.rules* which then makes sure the firmware is also loaded on startup during detection of the camera via udev. ### Wifi @@ -208,7 +208,7 @@ to use systemd-networkd with that? ### Fans and sensors [https://aur.archlinux.org/packages/macfanctld/](macfanctl) from the AUR works nicely, -also lm_sensors had no problems to get its data. +also lm_sensors had no problems to get the sensor data. ### Power consumption @@ -227,15 +227,15 @@ be happy by just switching off the mousepad completly. The one button mouse is a disaster for people being used to Xorg copy- paste or Oberon enthusiasts used to three mouse buttons. -Two finger scrolling is nice, but per default only for up and down. -I enabled it also to left and right. Besides, the keyboard is missing +Scrolling with two fingers is nice, but per default they are enabled only for up and down. +I enabled also scrolling to the left and right. Besides, the keyboard is missing PageUp, PageDown keys, which is a usability nightmare when you want to scroll bigger source code files or web pages (yes, I know there is Fn-Page, but having Ctrl, Alt, Meta and Fn all on the same spot doesn't make it easier to find the right one). -Side note: *Fn* is for page up, *Ctrl* for Wordstar short-cuts, "Alt" for -Notion shortcuts, and they are really _CLOSE_ together.. +Side note: I'm using *Fn* for keyboard scrolling (PgUp, PgDown), *Ctrl* for Wordstar short-cuts, "Alt" for +Notion (window manager) shortcuts, and they are really _CLOSE_ together.. Change */etc/X11/xorg.conf.d/50-synaptics.conf* as follows to your likings: ``` @@ -270,11 +270,11 @@ I might add some Ctrl, Meta modifiers to get 2, 3 mouse button clicks later. ## Philosophical Outro -In a world where companies try hard to get people into their ecosystem (what they -can do with the products they bought and own, what they can repair or let repair, what kind +In a world where companies try hard to get people into their ecosystem (controlling what they +what users can do with the products they bought and own, what they can repair or let repair, what kind of operating system and software they are supposed to use), I think, it's the -duty of any tech professional to invest some time to give old hardware some -usage back (hence I'm also working on the Archlinux32 project). Also throwing +duty of any tech professional to invest some time to give old hardware back some +purpose (hence I'm also working on the Archlinux32 project). Also, throwing away barely used machines, just because a company wants to earn billions, is an ecological disaster. Remember, companies have been invented to make money, don't get fooled by "we are there to make the world a better place" or any other marketing bs. @@ -286,9 +286,9 @@ around and I'm not buying new machines since 10 years (I do buy old ones from Eb * https://everymac.com/systems/apple/macbook_pro/specs/macbook-pro-core-2-duo-2.33-15-specs.html : specifications of the A1211 model -* https://bugs.freedesktop.org/show_bug.cgi?id=26891: the patch to radeon.ko, - enabling loading of file as VESA bios. -* https://bbs.archlinux.org/viewtopic.php?id=139511: some discussions about +* [https://bugs.freedesktop.org/show_bug.cgi?id=26891](https://bugs.freedesktop.org/show_bug.cgi?id=26891): the patch to radeon.ko, + enabling loading of file as VESA bios +* [https://bbs.archlinux.org/viewtopic.php?id=139511](https://bbs.archlinux.org/viewtopic.php?id=139511): some discussions about the VESA radeon topic in the Archlinux forum. * https://wiki.archlinux.org/index.php/Mac#Webcam: how to make the camera work -- cgit v1.2.3-54-g00ecf