OpenBSD on LG GRAM 14T990-G.AA75B
Hello, I would love to use OpenBSD on my LG GRAM laptop. The boot until up to a point is quite fast, but then slows down dramatically. The same behavior if installed on disk or booting from the USB Installer, every operation takes seconds to complete, the keyboard input seems ok, but after ENTER, it needs a couple of seconds to go further. Kernel relinking is very noticeable, installation (downloading the set and writing the set) is very slow. Formatting a 4G usb pendrive timed with time takes 1m05.09s real, 0m00.02s user, 0m00.25s system Screenrefresh on console is very slow, you see the screen refreshing for every new line on the screen. I tested with 6.7-RELEASE and a snapshot from 16th of June. Investigating the system, I see: one of the 4 cores is with around 97-99 % interrupt use. systat shows "ihidev1" has constantly around 250-260 interrupts Hardware: Intel Core i7-8565U (1.60GHz, Turbo up to 4.60GHz), L3 Cache 6MB, 15W 1 x 8GB (DDR4 2400MHz) 512GB M.2 (mSATA3) 35,5cm (14,0") Táctil, FHD (1920*1080) IPS LCD, GorillaGlass 5, 96% sRGB y 300 nit Intel Dual Band Wireless-AC 8265 2x2 AC (AGN support, BT Combo) Intel UHD Graphics 620 2 x USB 3.1 (tipo A) 1 x USB 3.0 (tipo C) con carga rapida y carga en apagado 1 x HDMI 1 x Toma auriculares 3.5mm 1 x Puerto alimentacion (DC-In) dmesg: OpenBSD 6.7-current (RAMDISK_CD) #264: Tue Jun 16 22:27:53 MDT 2020 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD real mem = 8328798208 (7942MB) avail mem = 8072355840 (7698MB) random: good seed from bootblocks mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.2 @ 0x7fab2000 (101 entries) bios0: vendor American Megatrends Inc. version "14T99F06" date 03/06/2019 bios0: LG Electronics 14T990-G.AA75B acpi0 at bios0: ACPI 6.1 acpi0: tables DSDT FACP APIC FPDT FIDT MCFG ECDT MSDM SSDT SSDT PMCT SSDT SSDT HPET SSDT UEFI LPIT SSDT DBGP DBG2 SSDT SSDT DMAR BGRT TPM2 WSMT acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz, 1696.79 MHz, 06-8e-0b cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu0: 256KB 64b/line 8-way L2 cache cpu0: apic clock running at 24MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins acpiec0 at acpi0 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (PEG0) acpiprt2 at acpi0: bus -1 (PEG1) acpiprt3 at acpi0: bus -1 (PEG2) acpiprt4 at acpi0: bus -1 (RP01) acpiprt5 at acpi0: bus -1 (RP02) acpiprt6 at acpi0: bus -1 (RP03) acpiprt7 at acpi0: bus -1 (RP04) acpiprt8 at acpi0: bus -1 (RP05) acpiprt9 at acpi0: bus -1 (RP06) acpiprt10 at acpi0: bus -1 (RP07) acpiprt11 at acpi0: bus 1 (RP08) acpiprt12 at acpi0: bus -1 (RP09) acpiprt13 at acpi0: bus -1 (RP10) acpiprt14 at acpi0: bus -1 (RP11) acpiprt15 at acpi0: bus -1 (RP12) acpiprt16 at acpi0: bus -1 (RP13) acpiprt17 at acpi0: bus -1 (RP14) acpiprt18 at acpi0: bus -1 (RP15) acpiprt19 at acpi0: bus -1 (RP16) acpiprt20 at acpi0: bus -1 (RP17) acpiprt21 at acpi0: bus -1 (RP18) acpiprt22 at acpi0: bus -1 (RP19) acpiprt23 at acpi0: bus -1 (RP20) acpiprt24 at acpi0: bus -1 (RP21) acpiprt25 at acpi0: bus -1 (RP22) acpiprt26 at acpi0: bus -1 (RP23) acpiprt27 at acpi0: bus -1 (RP24) acpipwrres at acpi0 not configured acpipwrres at acpi0 not configured acpipwrres at acpi0 not configured acpipwrres at acpi0 not configured acpipwrres at acpi0 not configured acpicpu at acpi0 not configured acpitz at acpi0 not configured acpipwrres at acpi0 not configured acpipci0 at acpi0 PCI0: 0x 0x0011 0x0001 acpicmos0 at acpi0 "LGEX0815" at acpi0 not configured "INT3403" at acpi0 not configured "INT3403" at acpi0 not configured "INT34BB" at acpi0 not configured "SYNA1D34" at acpi0 not configured "ITE8350" at acpi0 not configured "GXFP5A8B" at acpi0 not configured "PNP0C0A" at acpi0 not configured "ACPI0003" at acpi0 not configured "INT0E0C" at acpi0 not configured "PNP0C0E" at acpi0 not configured "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "INT33A1" at acpi0 not configured "PNP0C0C" at acpi0 not configured "MSFT0101" at acpi0 not configured "PNP0C0D" at acpi0 not configured "PNP0C14" at acpi0 not configured "INT33D3" at acpi0 not configured "INT33D5" at acpi0 not configured "INT3400"
[no subject]
set-check all
[no subject]
set misc unique,selfcopy
Thoughts or links on optimally secure defaults for pf.conf and fstab, whilst aiming to minimise support issues.
> > -- Forwarded message -- > From: Kevin Chadwick > To: misc@openbsd.org > Cc: > Bcc: > Date: Sun, 14 Jun 2020 13:58:39 + > Subject: Thoughts or links on optimally secure defaults for pf.conf and > fstab, whilst aiming to minimise support issues. > We are basing the server part of our products on OpenBSD. > > We care more about reducing support issues than say performance. > > We will have batteries but I hope to deploy some kind of root partition > redundancy, for upgrades. > > However, Is sync or softdep a better default for the best chance of avoiding > manual fsck/support issues? Hello, I just recently got to use OpenBSD (before FreeBSD, before that Linux) and what I found out about recently is FuguIta [1], it seems to be a OpenBSD Live System, where you can create an encrypted partition and save state data to it (etc, var, etc.), then read that back after boot into memory, with that you could have memory only solution going, which, as they say on their website, can work with as little as 64MB of ram (without X use). Now I imagen if you distribute your software on top of OpenBSD, you could manage to use FuguIta to create your own install system, as you control the hardware, you can configure the boot without user interaction (on their website they describe how to create your own system. So, If I needed more resilience against power outtages, I would give fuguIta a try, but of course it depends on your configuration and the software you are running / service you are providing. Best Rai [1] http://fuguita.org
Re: Getting HDMI Events
On Mon, 8 Jun 2020 at 13:51, Marcus MERIGHI wrote: > Sorry to hear that; I just made sure that "it works for me", on amd64 > -current. dmesg below. > > marcus OK, thanks for the Info, maybe I have to check the driver, although my C is very rusty :-) best Rai p.s. my complete dmesg: OpenBSD 6.7 (GENERIC.MP) #2: Thu Jun 4 09:55:08 MDT 2020 r...@syspatch-67-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8452829184 (8061MB) avail mem = 8184029184 (7804MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xbcd3d000 (60 entries) bios0: vendor LENOVO version "GRET63WW (1.40 )" date 03/27/2020 bios0: LENOVO 20A8S00C00 acpi0 at bios0: ACPI 5.0 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SLIC DBGP ECDT HPET APIC MCFG SSDT SSDT SSDT SSDT SSDT SSDT SSDT PCCT SSDT UEFI MSDM ASF! BATB FPDT UEFI BGRT DMAR acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiec0 at acpi0 acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz, 1995.69 MHz, 06-45-01 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN 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 cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz, 1995.38 MHz, 06-45-01 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 1, core 0, package 0 cpu2 at mainbus0: apid 2 (application processor) cpu2: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz, 1995.38 MHz, 06-45-01 cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 0, core 1, package 0 cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz, 1995.38 MHz, 06-45-01 cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 1, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 40 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xf800, bus 0-63 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (PEG_) acpiprt2 at acpi0: bus 2 (EXP1) acpiprt3 at acpi0: bus 3 (EXP2) acpiprt4 at acpi0: bus -1 (EXP3) acpicpu0 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpicpu1 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpicpu2 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpicpu3 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1 acpitz0 at acpi0: critical temperature is 200 degC dwiic0 at acpi0 I2C1 addr 0xfe105000/0x1000 irq 7 iic0 at dwiic0 "CPLM3218" at iic0 addr 0x48 not configured acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpipci0 at acpi0 PCI0: 0x 0x0011 0x0001 acpicmos0 at acpi0 acpibat0 at acpi0: BAT0 model "45N1701" serial 10421 type LiP oem "SONY" acpiac0 at acpi0: AC unit online acpithinkpad0 at acpi0: version 2.0 "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured
Re: usb keyboard suspend and hibernate problem
On Sun, 7 Jun 2020 at 23:07, wrote: > > Haai, > > "Switch 1024" wrote: > > Hi, > > > > I have a Ultimate Hacking Keyboard [1] and it seems to prevent my > > undefined external reference: [1] AAAhrgl, you got me there %) [1] https://ultimatehackingkeyboard.com/
usb keyboard suspend and hibernate problem
Hi, I have a Ultimate Hacking Keyboard [1] and it seems to prevent my lenovo X1 Carbon 4th gen. from suspending and hibernating. Sometimes it works, but more often than not, the power led flashes rapidly, the displays turn off, hdmi cuts out, the fan starts up and thats it. after quite some time i found that I can make the machine reliable suspend if I disconnect the usb keyboard before executing zzz. I am wondering if there is a command with which I can poweroff the keyboard in /etc/apm/suspend? Thank you, best regards Rai
Re: Getting HDMI Events
On Sun, 7 Jun 2020 at 14:06, Marcus MERIGHI wrote: > > switch1...@gmail.com (Switch 1024), 2020.06.07 (Sun) 08:59 (CEST): > > tldr; My question is, how can I get HDMI Events, I want to execute scripts > > when a new HDMI (or DP, for that matter) device is connected or > > disconnected. > > Maybe there is a really obvious or simple way or solution but I did not see > > it. > > x-on-resize might have some clues: > https://marc.info/?l=openbsd-misc=157104216604576 > > marcus Ok, Thank you, I downloaded the sources for x-on-resize [1], got it to compile with clang, but I do not receive events. Clang line: clang -v -L/usr/X11R6/lib/ -lX11 -lXrandr -I/usr/src/lib/libX11/include/ -I/usr/src/proto/xorgproto/include/ -I/usr/src/lib/libXrandr/include/ -I/usr/src/lib/libXrender/include/ x-on-resize.c I modified the source a bit to get some output: ``` for (;;) { int configed = 0; int resized = 0; printf ("in for\n"); do { printf ("in while\n"); printf ("XNextEvent\n"); XNextEvent(dpy, ); printf ("ev.type: %d\n", ev.type); switch (ev.type - event_base) { case RRNotify: printf ("in RRNotify\n"); nev = (XRRNotifyEvent *) ``` But I only get "in while", then "XNextEvent" and nothing more, it sits there. If i execute Xrandr, change Xrandr configuration, disconnect HDMI port, reconnect HDMI port, I do not receive any events. Does any one have any thoughts? Could it be my graphics card? inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x0b drm0 at inteldrm0 inteldrm0: msi, HASWELL, gen 7 inteldrm0: 1600x900, 32bpp wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0 [drm] *ERROR* Potential atomic update failure on pipe B [1] https://people.freedesktop.org/~keithp/x-on-resize.git/
Re: cron scheduling on a laptop and backups
> One suggestion would be to, just like on Linux, run jobs that need to > run at least once a day (if the machine is up at least once a day) using > anacron. The anacron tool is available as a package. > > You would trigger anacron with a "@reboot", and possibly also with a > "@daily" cron job. Thank you very much, got it configured!
Getting HDMI Events
Hello again, tldr; My question is, how can I get HDMI Events, I want to execute scripts when a new HDMI (or DP, for that matter) device is connected or disconnected. Maybe there is a really obvious or simple way or solution but I did not see it. Reading the man page for kqueue, I was very excited to see that I can monitor for HDMI changes EVFILT_DEVICE and NOTE_CHANGE. But I do not see how I could use it, I am not sure what would be the descriptor to watch for in this case. Also the perl kqueue cpan module does not contain the EVFILT_DEVICE stuff. I tried anyway using values defined in the .h files, tried to use various outputs like pci device number etc. as a descriptor but it did not work. Using incron does also not work as it only concentrates on files. I checked the hotplugd but did not get anywhere either. Then reading the source of drm etc. and I see that at least HDMI changes do send NOTE_CHANGE events to kqueue, so they should be there. Using xev with the -event randr should print randr events, and I thought HDMI connects or disconnects should be events randr talks about, but it does not work. I am very interested in this because I created a set of scripts which check the EDID output and stuff and create a hash and based on that executes defined scripts so in my home, the monitor is left of the laptop, but in the office, it is actually right of the laptop for reasons. And when I am on the road it just turns off the other outputs, but now I have to I3 bindsym a key binding to execute it when I come home from work and connect the monitor. Thank you Rai
cron scheduling on a laptop and backups
Hello, first time OpenBSD user here. I came from 20 years of linux, then 6 years of freebsd, and finally arrived at OpenBSD, thank you guys for doing such a great job. It just feels right, feels like home! While checking about how to backup the system correctly, and what files I need to recover my system and checked the altroot strategy, which is executed from the daily script which is started via cron. I checked my cron log and there are no executions of daily, weekly, etc. I only see newsyslog jobs being executed. Right, I put my laptop to sleep or turn it off most of the time when I am done working. So how to deal with this correctly? Change the hours to run the backups during the day? Is there a way to tell cron to run jobs it missed? (Reading the man pages, I did not see that there would be ...) How do you guys schedule these tasks (also cleanup tasks to clean out /tmp etc. on your laptops? Thank you, Best regards Rai