Realtek RTL8411 Card Reader support rtsx driver

2015-03-14 Thread tixx

Hello,
I have a Realtek RTL8411 Card Reader and by applying this little
patch my SD card reader now works, read and write seem to be OK.

Index: rtsx_pci.c
===
RCS file: /cvs/src/sys/dev/pci/rtsx_pci.c,v
retrieving revision 1.9
diff -u -p -r1.9 rtsx_pci.c
--- rtsx_pci.c  14 Mar 2015 03:38:49 -  1.9
+++ rtsx_pci.c  14 Mar 2015 16:18:32 -
@@ -60,6 +60,7 @@ rtsx_pci_match(struct device *parent, vo
PCI_PRODUCT(pa-pa_id) == PCI_PRODUCT_REALTEK_RTS5227 ||
PCI_PRODUCT(pa-pa_id) == PCI_PRODUCT_REALTEK_RTS5229 ||
PCI_PRODUCT(pa-pa_id) == PCI_PRODUCT_REALTEK_RTL8411B ||
+   PCI_PRODUCT(pa-pa_id) == PCI_PRODUCT_REALTEK_RTL8411 ||
PCI_PRODUCT(pa-pa_id) == PCI_PRODUCT_REALTEK_RTL8402)
return 1;

If someone have a patch for improve support, I can test for you.



How to run a GUI app without X?

2015-03-03 Thread tixx

Hello, for OpenBSD you can't.
http://www.openbsd.org/faq/faq11.html#Intro (11.1.2)



Beep low battery

2014-12-05 Thread tixx

Hello,
On my laptop I have a beep every 2 seconds when the battery is low.
How to disable it ? It's not a BIOS setting.
Thanks.

dmesg:

OpenBSD 5.6-current (GENERIC.MP) #650: Fri Dec  5 09:20:49 MST 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 6295150592 (6003MB)
avail mem = 6123724800 (5840MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb300 (44 entries)
bios0: vendor American Megatrends Inc. version 4.6.5 date 08/02/2013
bios0: CLEVO CO. W54xEU
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG SSDT HPET SSDT SSDT SSDT ASF!
acpi0: wakeup devices P0P1(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) 
USB5(S3) USB6(S3) USB7(S3) PXSX(S5) RP01(S

4) PXSX(S5) RP03(S4) PXSX(S5) RP04(S4) JMC2(S4) JMC3(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU 1000M @ 1.80GHz, 1796.17 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE

2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,PO
PCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) CPU 1000M @ 1.80GHz, 1795.93 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE

2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,PO
PCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP03)
acpiprt3 at acpi0: bus 3 (RP04)
acpiprt4 at acpi0: bus 4 (RP05)
acpiprt5 at acpi0: bus -1 (RP06)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, C1, PSS
acpicpu1 at acpi0: C2, C1, PSS
acpitz0 at acpi0: critical temperature is 120 degC
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID0
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT0 model BAT serial 0001 type LION oem NOTEBOOK
acpidock0 at acpi0: DOCK not docked (0)
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: LCD0
cpu0: Enhanced SpeedStep 1796 MHz: speeds: 1800, 1700, 1600, 1500, 1400, 
1300, 1200 MHz

pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Core 3G Host rev 0x09
vga1 at pci0 dev 2 function 0 Intel HD Graphics 2500 rev 0x09
intagp at vga1 not configured
inteldrm0 at vga1
drm0 at inteldrm0
drm: Memory usable by graphics device = 2048M
inteldrm0: 1366x768
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
xhci0 at pci0 dev 20 function 0 Intel 7 Series xHCI rev 0x04: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 Intel xHCI root hub rev 3.00/1.00 addr 1
Intel 7 Series MEI rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 Intel 7 Series USB rev 0x04: apic 2 
int 16

usb1 at ehci0: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 7 Series HD Audio rev 0x04: 
msi

azalia0: codecs: VIA/0x8446, Intel/0x2806, using VIA/0x8446
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 7 Series PCIE rev 0xc4: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 2 Intel 7 Series PCIE rev 0xc4: msi
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 Atheros AR9285 rev 0x01: apic 2 int 18
athn0: AR9285 rev 2 (1T1R), ROM rev 14, address e0:b9:a5:47:f2:0f
ppb2 at pci0 dev 28 function 3 Intel 7 Series PCIE rev 0xc4: msi
pci3 at ppb2 bus 3
Realtek RTL8411 Card Reader rev 0x01 at pci3 dev 0 function 0 not 
configured
re0 at pci3 dev 0 function 2 Realtek 8168 rev 0x0a: RTL8411 (0x4880), 
msi, address 00:90:f5:e8:73:c5

rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
ppb3 at pci0 dev 28 function 4 Intel 7 Series PCIE rev 0xc4: msi
pci4 at ppb3 bus 4
ehci1 at pci0 dev 29 function 0 Intel 7 Series USB rev 0x04: apic 2 
int 23

usb2 at ehci1: USB revision 2.0
uhub2 at usb2 Intel EHCI root hub rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 Intel HM77 LPC rev 0x04
ahci0 at pci0 dev 31 function 2 Intel 7 Series AHCI rev 0x04: msi, 
AHCI 1.3

scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: ATA, ST160LM003 HN-M1, 2AR1 SCSI3 
0/direct fixed naa.50004cf206da51c3

sd0: 152627MB, 512 bytes/sector, 312581808 sectors
cd0 at scsibus1 targ 2 lun 0: TSSTcorp, CDDVDW TS-U633J, TM00 ATAPI 
5/cdrom removable
sd1 at scsibus1 targ 4 lun