Wednesday, February 29, 2012

5.1 amd64 K43U: Where is scrotwm now, eh?

Hi,

I was looking for updated info on my fav wm, scrotwm but heck I can't find any now. What? spectrwm? Uh?

Oh. If you read this conversation, you'll finally know that scrotwm has changed its name to spectrwm. That's why. Well changes are gradual so some reference to scrotwm is still there. Nice name. As long as it perform better each time it's updated, I will be happy. Later

Friday, February 24, 2012

5.1 amd64 K43U: Following -current using snapshot, updated to radeon 6.14.3

Hi,

First of all, now my K43U machine is using 1366x768 display and no more slow scrolling! Hurrah! I LOVE OPENBSD! At last! The display is more crisp. If you're using AMD e-450 with Radeon HD 6300 graphic, now is your time to rejoice!

My current uname -a is:

OpenBSD karlap.vampire.my 5.1 GENERIC.MP#207 amd64

I've successfully installed OpenBSD -current snapshot.

Why I want to follow -current?
1) Because -current have the updated radeon 6.14.3 driver which can detect and use Radeon HD 6320 properly.
2) Because I want to use -current.
3) Because scrotwm is the newest version.
4) Because of the Radeon HD6320 driver... heh.

If you have more or less the same reason as me, read on. Before I forget, many thanks to http://blather.michaelwlucas.com/archives/543 for providing incredibly informative tips on updating to snapshot.

Updating my 5.0 to 5.1 (-current):
I used http://ftp.OpenBSD.org/pub/OpenBSD/snapshots/amd64 for the site to update my machine.

1) Copy bsd* and *.tgz files to local folder. (eg: /mnt/snapshots/amd64/)
2) Login to machine without X. cd to the folder you downloaded the files above. In shell, type this command:
$ sudo cp bsd.rd /
$ sudo sudo sysmerge -s etc51.tgz -x xetc51.tgz


3) Reboot the machine, after rebooted, bypass autoloading bootfile and choose:
boot> boot bsd.rd

4) bsd.rd will booted and choose (U)pgrade, then choose the folder you saved all the files for updating (eg: /mnt/snapshots/amd64/)
5) let it update. Remember that this is only the base OpenBSD, not all the third-party packages. After it's done, reboot.
6) I still have problem using pkg_add via proxy so I downloaded all the updated packages manually and place it in a specific folder (eg: /mnt/snapshots/packages/)
7) Now to update packages. Still without X and in shell, type:
$ export PKG_PATH=/mnt/snapshots/packages/
$ sudo pkg_add -vui


8) Make sure you read the verbose output to find out any missing dependencies.

Updating xf86-video-ati to 6.14.3 (hurrah!)
1) Download http://ftp.x.org/pub/individual/driver/xf86-video-ati-6.14.3.tar.gz
2) tar -zxvf the file
3) cd to the folder, and type this commands:
$ sh ./configure --prefix=/usr/X11R6 --sysconfdir=/etc --mandir=/usr/X11R6/man --with-xorg-module-dir=/usr/X11R6/lib/modules --disable-kms
$ sudo make
$ sudo make install


4) Now to test, vi /etc/X11/xorg.conf and change:
Section "Device"
Driver "vesa"


to

Driver "radeon"

5) reboot to test.

So far the machine is running like a charm. Nice display. Nice widescreen resolution. Oh, BTW. This is more updated scrotwm. YEAH!

There's a few remaining issue though:
1) Annoying ultra-sensitive touchpad (I use usb mouse most of the time).
2) xv with MPlayer is not working.
3) gnome-mplayer + Thunderbird + youtube issue (can use HTML5 WebM no problem though).

And I'm figuring out ways to use the Fn key combination as intended by the label (on/off WiFi, enable/disable touchpad, mute/unmute | vol up/down mixer etc). I'll post updates on any new findings. Now my K43U is back as my primary work machine. Yeah!

5.1 amd64 K43U: dmesg.

OpenBSD 5.1 (GENERIC.MP) #207: Sun Feb 12 09:42:14 MST 2012
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8165330944 (7787MB)
avail mem = 7933804544 (7566MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeafd0 (50 entries)
bios0: vendor American Megatrends Inc. version "217" date 11/08/2011
bios0: ASUSTeK Computer Inc. K43U
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT SLIC
acpi0: wakeup devices SBAZ(S4) P0PC(S4) GEC_(S4) UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4) PE21(S
4) PE22(S4) PE23(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.70 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX1
6,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.49 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX1
6,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 3 pa 0xfec00000, version 21, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (PE20)
acpiprt2 at acpi0: bus 4 (PE21)
acpiprt3 at acpi0: bus -1 (PE22)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus -1 (BR15)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (PCE4)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, PSS
acpicpu1 at acpi0: C2, PSS
acpitz0 at acpi0: critical temperature is 99 degC
acpibat0 at acpi0: BAT1 model "PA3533U " serial 41167 type Li-Ion oem "TOSHIBA"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID_
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
cpu0: 1646 MHz: speeds: 1650 1320 825 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
vga1 at pci0 dev 1 function 0 "ATI Radeon HD 6320" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 3 int 18
drm0 at radeondrm0
azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 3 int 19, AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: SCSI3 0/direct fixed naa.50014ee6ac21175d
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
cd0 at scsibus0 targ 1 lun 0: ATAPI 5/cdrom removable
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: polling
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
pciide0 at pci0 dev 20 function 1 "ATI SB700 IDE" rev 0x40: DMA, channel 0 configured to compatibility, channel 1 configured to
compatibility
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 3 int 16
azalia1: codecs: Realtek ALC269
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb1 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci2 at ppb1 bus 2
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ppb2 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL (0x2c80), apic 3 int 16, address 14:da:e9:a2:a3:06
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
ppb3 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
pci4 at ppb3 bus 4
athn0 at pci4 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 3 int 17
athn0: AR9285 rev 2 (1T1R), ROM rev 14, address d0:df:9a:85:1a:ef
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb2 at ehci2: USB revision 2.0
uhub2 at usb2 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43
pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00
pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00
pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci1: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb5 at ohci2: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb6 at ohci3: USB revision 1.0
uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
uvideo0 at uhub0 port 3 configuration 1 interface 0 "04081-00050100C417910FV ASUS USB2.0 WebCam" rev 2.00/0.05 addr 2
video0 at uvideo0
uhidev0 at uhub3 port 1 configuration 1 interface 0 "Logitech USB-PS/2 Optical Mouse" rev 2.00/20.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (e777c1bb59b96fd1.a) swap on sd0b dump on sd0b

Thursday, February 23, 2012

5.0 amd64 K43U: Upgrading to -current. Soon.

Heyya,

I'm currently preparing my system (mostly preparing myself) to get my K43U upgrading to -current. Most probably using snapshot installation. Information are lacking but I'm more or less getting to it. I will post anything on it later.

6.5 amd64: Modify existing certbot certificates.

Hi, It's been quite some time eh. As you can see, I still upgrade my OpenBSD system regularly but currently I do not have the time to ...