Trackpad after suspend/resume on MacBookAir4,1

2014-11-23 Thread Maximilian Pichler
Hi, After resuming from suspend (either by closing and reopening the lid or via zzz) the trackpad behaves erratically -- the pointer jumps around wildly when using it. The issue is reproducible. Here is the dmesg from boot: OpenBSD 5.6 (GENERIC.MP) #333: Fri Aug 8 00:20:21 MDT 2014

Re: Trackpad after suspend/resume on MacBookAir4,1

2014-11-24 Thread Maximilian Pichler
Thanks for the explanations! On Mon, Nov 24, 2014 at 4:19 AM, Martin Pieuchot mpieuc...@nolizard.org wrote: On 24/11/14(Mon) 09:04, Peter Hessler wrote: Can you switch from the graphical console (ctrl-alt-f5) to a text console (ctrl-alt-f1), and back? That may help with input device related

Re: Trackpad after suspend/resume on MacBookAir4,1

2014-11-24 Thread Maximilian Pichler
On Mon, Nov 24, 2014 at 8:21 AM, Martin Pieuchot mpieuc...@nolizard.org wrote: On 24/11/14(Mon) 08:11, Maximilian Pichler wrote: It's even slightly worse: after resuming, the keyboard still works in X, but switching to a text console (either via ctrl-alt-f1 or by quitting X) results

Re: Trackpad after suspend/resume on MacBookAir4,1

2014-11-24 Thread Maximilian Pichler
Thanks for explaining! On Sun, Nov 23, 2014 at 12:44 AM, Martin Pieuchot wrote: The best you can do for the moment is restart X after resuming, it should recalibrate your touchpad properly. Quitting X after resuming results in the keyboard becoming unusable in the text console, i.e. garbled

Re: Trackpad after suspend/resume on MacBookAir4,1

2014-11-24 Thread Maximilian Pichler
, Maximilian Pichler (maxim.pich...@gmail.com) wrote: On Mon, Nov 24, 2014 at 8:21 AM, Martin Pieuchot mpieuc...@nolizard.org wrote: On 24/11/14(Mon) 08:11, Maximilian Pichler wrote: It's even slightly worse: after resuming, the keyboard still works in X, but switching to a text console

libxmmsmad.so: undefined symbol '__guard_local'

2014-11-26 Thread Maximilian Pichler
Hi, When starting xmms the following error appears: xmms:/usr/local/lib/xmms/Input/libxmmsmad.so: undefined symbol '__guard_local' Cannot load specified object Then, I cannot open any files or add them to the playlist. No error message appears, but nothing happens (file doesn't play and its name

Re: libxmmsmad.so: undefined symbol '__guard_local'

2014-11-26 Thread Maximilian Pichler
On Wed, Nov 26, 2014 at 11:30 AM, Christian Weisgerber na...@mips.inka.de wrote: When starting xmms the following error appears: xmms:/usr/local/lib/xmms/Input/libxmmsmad.so: undefined symbol '__guard_local' Cannot load specified object Indeed, I can reproduce this. This plug-in is broken.

Volume and brightness keys

2014-11-26 Thread Maximilian Pichler
Hi, On my MacBook Air 4,1 the volume keys seem to work out of the box, though currently I have to hold down 'fn' while pressing them. What mechanism is responsible for this? (I'd like to get it to work without the fn key.) On the other hand, the brightness keys don't seem to do anything. I've

Trying to restart pppoe0: Device busy

2015-02-08 Thread Maximilian Pichler
Hi, I'm trying to restart the pppoe0 interface, so as to renegotiate a new connection to the ISP, but am getting the following error. $ sudo sh /etc/netstart pppoe0 ifconfig: SIOCSSARAMS(SPPPIOSXAUTH): Device busy route: writing to routing socket: File exists add net default: gateway

Re: Trying to restart pppoe0: Device busy

2015-02-08 Thread Maximilian Pichler
On Sun, Feb 8, 2015 at 4:20 PM, Hrvoje Popovski hrv...@srce.hr wrote: try ifconfig pppoe0 destroy sh netstart pppoe0 That worked, thanks! I'm still struggling with the meaning of the error message and why this is required...

Re: iwm0: fatal firmware error / could not initiate scan

2015-05-04 Thread Maximilian Pichler
On Mon, May 4, 2015 at 6:10 AM, Stefan Sperling s...@stsp.name wrote: Is the following thread of any use: http://openbsd-archive.7691.n7.nabble.com/iwm0-fatal-firmware-error-on-current-td267434.html That might be it. Maximilian, can you please try this patch which was committed by jsg@ in

iwm0: fatal firmware error / could not initiate scan

2015-05-03 Thread Maximilian Pichler
Hi, I'm getting these console errors on startup and each time I run ifconfig iwm0 scan: iwm0: fatal firmware error iwm0: could not initiate scan Not sure how to diagnose the problem better. I tried rebooting, but to no avail. Full dmesg below. Best, Max OpenBSD 5.7 (GENERIC.MP) #881: Sun

Slow graphics with Intel Iris 6100

2015-04-30 Thread Maximilian Pichler
Hi, I'm getting quite slow graphics on an Intel NUC with an integrated Iris 6100. My guess is that acceleration is not working, although I'm not sure how to confirm this. The symptoms are that the X process constantly consumes about 25% of CPU time while scrolling and switching web pages is

Re: Slow graphics with Intel Iris 6100

2015-05-01 Thread Maximilian Pichler
On Fri, May 1, 2015 at 3:52 AM, Jonathan Gray j...@jsg.id.au wrote: There is currently no support for 5th generation Core i*/Broadwell graphics in inteldrm(4). So all X operations with be unaccelerated. Thanks for the answer! Is this evident somewhere in the documentation? intel(4) explicitly

Re: Slow graphics with Intel Iris 6100

2015-05-01 Thread Maximilian Pichler
On Fri, May 1, 2015 at 6:39 AM, Jonathan Gray j...@jsg.id.au wrote: There is currently no support for 5th generation Core i*/Broadwell graphics in inteldrm(4). So all X operations with be unaccelerated. Thanks for the answer! Is this evident somewhere in the documentation? intel(4)

Slow graphics with Intel Iris 6100

2015-05-04 Thread Maximilian Pichler
On Monday, May 4, 2015, Mihai Popescu mih...@gmail.com javascript:_e(%7B%7D,'cvml','mih...@gmail.com'); wrote: Perhaps it would be helpful if the man page inteldrm(4) mentioned this, so people can avoid buying unsupported hardware. Come on, are you serious about this? The man page of

Re: xbacklight: No outputs have backlight property

2015-05-09 Thread Maximilian Pichler
I guess what you might be after is called DDC/IC or MCCS: http://en.wikipedia.org/wiki/Display_Data_Channel#DDC.2FCI Not sure what part of OpenBSD manages this. On Tue, May 5, 2015 at 11:47 PM, Sandrine Duvalier clementine.duval...@gmail.com wrote: Hi! Not sure if this is possible but I'd

Remote X app with GLX

2015-05-08 Thread Maximilian Pichler
Hi, I'm trying to run a remote X application with accelerated graphics, but this doesn't seem to work: $ ssh -Y 192.168.1.2 glxgears libGL error: failed to open drm device: Permission denied libGL error: failed to load driver: i965 28 frames in 5.1 seconds = 5.458 FPS $ ssh -Y 192.168.1.2

iPhone?

2015-10-24 Thread Maximilian Pichler
Hi, I just connected an iPhone to my OpenBSD box and it doesn't seem possible to access its memory. Is there any way to make this work? In fact, is there anything at all that can be done with OpenBSD and an iPhone...? Thanks Max uaudio0 at uhub0 port 1 configuration 2 interface 0 "Apple Inc.

Performance of Firefox and Chromium

2016-04-29 Thread Maximilian Pichler
Hi, After upgrading to 5.9 (and thus Chromium 48 and Firefox 44) browser performance seems degraded. Opening three different tabs with e.g. newspaper websites results in a noticeable lag (up to several seconds) when switching tabs or even just typing a URL into the address bar. My question is:

Re: Performance of Firefox and Chromium

2016-04-29 Thread Maximilian Pichler
On Fri, Apr 29, 2016 at 8:45 AM, Donald Allen wrote: > I have not tried 'current', but again, there is discussion in the archives > about internal changes (in the scheduler?) that have apparently improved > things significantly in this area. Thanks for the hint. Updating

Slow video in VLC and mplayer, but not in browsers

2017-05-16 Thread Maximilian Pichler
Hi, I'm getting slow and choppy (non-accelerated?) video in both VLC and mplayer on OpenBSD 6.1. However, when watching the same video inside chromium or firefox the quality is decent. What might cause this? $ dmesg | grep vga vga1 at pci0 dev 2 function 0 "Intel HD Graphics 630" rev 0x04

"athn0: could not load firmware" for AR9271

2017-05-26 Thread Maximilian Pichler
Hi, I'm trying to use an Olimex MOD-WIFI-AR9271-ANT USB wireless adapter, but: # dmesg OpenBSD 6.1 (GENERIC.MP) #20: Sat Apr 1 13:45:56 MDT 2017 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP [...] athn0 at uhub0 port 5 configuration 1 interface 0 "ATHEROS UB93" rev

Re: "athn0: could not load firmware" for AR9271

2017-05-27 Thread Maximilian Pichler
On Sat, May 27, 2017 at 4:05 AM, Stefan Sperling wrote: > What is the model of your USB host controller? (please always send a > complete dmesg in problem reports -- you cannot guess exactly what people > will want to know about your machine, so by sending a complete dmesg >

Re: "athn0: could not load firmware" for AR9271

2017-05-27 Thread Maximilian Pichler
On Sat, May 27, 2017 at 11:03 AM, Stefan Sperling wrote: > The ATI SB700 is known to suffer from this issue. Good to know, thanks. > Get a 9280 miniPCIe. Pcengines sells them as "wle200nx". > A list of similar products can be found on wikidevi: >

Re: "athn0: could not load firmware" for AR9271

2017-05-28 Thread Maximilian Pichler
Thanks a lot for sharing the details! By the way, there seems to be an issue with the test results I sent because dd sometimes copied fewer bytes than intended. I'll try to pin it down and either update this thread or open a new one.

Blank screen after boot with Radeon HD 5450

2017-05-28 Thread Maximilian Pichler
Hi, After the installation of a VisionTek Radeon 5450 graphics card my machine gives a blank screen after booting. It still shows the normal system messages (full dmesg below), with the last visible one being "scsibus4 at softraid0: 256 targets". Then the monitor (connected via DisplayPort) goes

Re: Blank screen after boot with Radeon HD 5450

2017-05-29 Thread Maximilian Pichler
xrandr --output DisplayPort-0 --mode 1280x720 (screen remains blank) On Sun, May 28, 2017 at 8:02 PM, Maximilian Pichler <maxim.pich...@gmail.com> wrote: > I tried your suggestion of logging in with the keyboard while the > screen is blank and then typing "startx". Then logged i

Re: Blank screen after boot with Radeon HD 5450

2017-05-28 Thread Maximilian Pichler
On Sun, May 28, 2017 at 4:50 PM, Steven McDonald wrote: > Have you tried booting more than once? Yes, many times, both warm and cold.

Re: Blank screen after boot with Radeon HD 5450

2017-05-28 Thread Maximilian Pichler
I tried your suggestion of logging in with the keyboard while the screen is blank and then typing "startx". Then logged in via ssh: $ DISPLAY=:0 xrandr Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192 DisplayPort-0 disconnected primary (normal left inverted right x axis y axis)

Re: Blank screen after boot with Radeon HD 5450

2017-05-30 Thread Maximilian Pichler
On Tue, May 30, 2017 at 2:55 PM, Mihai Popescu wrote: > Did you disable the onboard card from BIOS? What options do you have for this? In the BIOS, "Primary Graphics Adapter" is set to "PCI Express". When switching it to "Onboard" and plugging the cable into the onboard DP, the

Re: Blank screen after boot with Radeon HD 5450

2017-05-30 Thread Maximilian Pichler
Without parameters, via ssh: $ xrandr Can't open display $ echo [$DISPLAY] [] This is after logging in and typing startx on the keyboard, with a blank monitor. I've also tried launching startx via ssh, with the same result. On Tue, May 30, 2017 at 5:08 PM, Mihai Popescu

Re: Blank screen after boot with Radeon HD 5450

2017-05-30 Thread Maximilian Pichler
systematic way of debugging this? I find it puzzling that none of the logs contains any error message. On Tue, May 30, 2017 at 9:42 AM, Allan Streib <astr...@indiana.edu> wrote: > Maximilian Pichler <maxim.pich...@gmail.com> writes: > >>2560x1440 59.95*+ &

Re: Blank screen after boot with Radeon HD 5450

2017-05-31 Thread Maximilian Pichler
Just tried another graphics card (VisionTek Radeon HD 6350), with identical results: the boot messages are shown, then the signal is lost.

Re: Blank screen after boot with Radeon HD 5450

2017-05-31 Thread Maximilian Pichler
On Wed, May 31, 2017 at 3:44 PM, Allan Streib wrote: >> You may be able to get a higher resolution by decreasing the refresh rate: >> >> $ gtf 2560 1440 33 >> >> # 2560x1440 @ 33.00 Hz (GTF) hsync: 48.44 kHz; pclk: 162.77 MHz >> Modeline "2560x1440_33.00" 162.77 2560

Re: Blank screen after boot with Radeon HD 5450

2017-05-31 Thread Maximilian Pichler
On Wed, May 31, 2017 at 2:06 PM, Allan Streib wrote: > I think you should try another monitor if at all possible. Perhaps your > monitor just goes into power-save mode with an incompatible signal. If and when I get my hands on another monitor I'll definitely try it out.

Re: Blank screen after boot with Radeon HD 5450

2017-05-30 Thread Maximilian Pichler
I would certainly have followed Allan's advice, but only own one monitor. Apologies for having failed to mention this.

Re: Blank screen after boot with Radeon HD 5450

2017-05-30 Thread Maximilian Pichler
On Tue, May 30, 2017 at 2:15 PM, wrote: > Just a thought -- maybe it's because there is no error ??? > > man xbacklight(1) $ xbacklight No outputs have backlight property The monitor is not just dark, but it says "no signal" and goes into power save mode.

Re: nc in inetd - under which account?

2017-06-06 Thread Maximilian Pichler
On Tue, Jun 6, 2017 at 11:06 AM, Marko Cupać wrote: > On Tue, 06 Jun 2017 08:18:15 -0600 > "Theo de Raadt" wrote: >> Never reuse a user intended for another purpose. >> >> Take a glance at the ptrace manual page. > I have read ptrace manual. But I

Re: Reading files faster than raw disk?

2018-06-15 Thread Maximilian Pichler
Thanks for the detailed explanation! As both you and Alexandre hinted at I was using the wrong tool. dd(1) indeed yields the expected speed on rsd1c. At least for this particular SD card a block size of 64k appears to be optimal: $ doas dd if=/dev/rsd1c of=/dev/null bs=32k count=16k 16384+0

Reading files faster than raw disk?

2018-06-15 Thread Maximilian Pichler
I'm getting much faster read speeds from an SD card when mounting the card and reading files (~50MB/s) than when reading the raw device rsd1c (~25MB/s). If anything, shouldn't it be the other way round, given that the file system has some overhead? Here are the measurements when mounting and

Limit CPU usage of a process?

2018-05-27 Thread Maximilian Pichler
Is it possible to limit the CPU usage of a given process to, say, 20%? I'd like to slow down the web browser since it is draining my laptop's battery. With enough tabs open it's often consuming ~50% of CPU but not doing anything productive. Apparently with RLIMIT_CPU in setrlimit(2) the total CPU

Re: 4k display on integrated Intel graphics?

2018-06-29 Thread Maximilian Pichler
On Fri, Jun 29, 2018 at 9:49 PM, Bryan Vyhmeister wrote: > It should work fine because the USB-C ports have DisplayPort signaling > built-in and I would not expect any issues. > > https://www.displayport.org/displayport-over-usb-c/ > > HDMI 1.4 does not support 4k at 60Hz like HDMI 2.0 does but

Re: How to copy n bytes from stdin to stdout?

2018-06-21 Thread Maximilian Pichler
On Thu, Jun 21, 2018 at 9:48 AM, Otto Moerbeek wrote: >> On Thu, Jun 21, 2018 at 12:11:52AM +0200, Maximilian Pichler wrote: >> > I'm just wondering what these other utilities might be. >> >> hexdump -v -n 1234567 -e '"%c"' Speed-wise this is roughly on

FTP login delay

2018-06-20 Thread Maximilian Pichler
I've enabled ftpd and am experiencing very long delays (consistently 75 seconds) when logging in from localhost. Running nc reveals that the connection is accepted immediately, but the server waits before spitting out the 'ready' line: $ nc -4v localhost 21 Connection to localhost 21 port

Re: How to copy n bytes from stdin to stdout?

2018-06-20 Thread Maximilian Pichler
Copy only n input blocks. ... These are input, not output blocks. On Wed, Jun 20, 2018 at 11:42 PM, Tomasz Rola wrote: > On Wed, Jun 20, 2018 at 08:20:16PM +0200, Maximilian Pichler wrote: >> On Wed, Jun 20, 2018 at 7:17 PM, Tomasz Rola wrote: >> > But seriously: man sh. &g

Re: How to copy n bytes from stdin to stdout?

2018-06-20 Thread Maximilian Pichler
ality." I'm just wondering what these other utilities might be. On Wed, Jun 20, 2018 at 5:32 PM, Maximilian Pichler wrote: > dd bs=1 count=1234567 will copy 1234567 bytes and then stop, but it's slow. > > I can't seem to think of a faster command that also works in the > p

Re: How to copy n bytes from stdin to stdout?

2018-06-20 Thread Maximilian Pichler
On Wed, Jun 20, 2018 at 6:27 PM, Tomasz Rola wrote: > On my Linux box: ? > cat HUGE | /usr/bin/time dd bs=1 count=1234944 | wc -c stdin might be something much faster than your disk, in which case the relative cost of bs=1 increases. > cat HUGE | /usr/bin/time dd bs=1024 count=1206 | wc -c

Re: How to copy n bytes from stdin to stdout?

2018-06-20 Thread Maximilian Pichler
On Wed, Jun 20, 2018 at 7:17 PM, Tomasz Rola wrote: > But seriously: man sh. Are you saying there is a shell built-in that does this? If so, which one?

clearing the disk cache

2018-07-03 Thread Maximilian Pichler
I'm doing some performance tests that include reading files from disk and want to make sure that each test takes place under similar conditions. In particular, how can one clear the disk cache? (I want to make sure that the second test isn't faster than the first one, just because some files they

Re: clearing the disk cache

2018-07-03 Thread Maximilian Pichler
On Tue, Jul 3, 2018 at 9:48 AM, Claudio Jeker wrote: > or reboot the system after every run. Would unmounting and remounting not be good enough? (At least for a FAT-formatted SD card this appears to work, though it could be caused by something else). In fact, at what level does caching happen?

Re: clearing the disk cache

2018-07-03 Thread Maximilian Pichler
On Tue, Jul 3, 2018 at 11:47 AM, Janne Johansson wrote: > https://www.tedunangst.com/flak/post/2Q-buffer-cache-algorithm Thanks. If I'm reading this correctly upon access (read or write), an action is performed depending on what queue a buffer is in: - none: Take a buffer from the tail of the

Re: clearing the disk cache

2018-07-03 Thread Maximilian Pichler
at 3:06 PM, Claudio Jeker wrote: > On Tue, Jul 03, 2018 at 01:30:20PM +0200, Maximilian Pichler wrote: >> On Tue, Jul 3, 2018 at 11:47 AM, Janne Johansson wrote: >> > https://www.tedunangst.com/flak/post/2Q-buffer-cache-algorithm >> >> Thanks. If I'm reading this c

fsck: CANNOT READ: BLK 4235468160

2018-01-06 Thread Maximilian Pichler
Hi, I'm running fsck on an external USB hard drive, using OpenBSD 6.2 inside VirtualBox on MacOS. On each run it gives a handful of "CANNOT READ: BLK ..." messages, but the block numbers reported are different (!) each time. If the disk is damaged, shouldn't the problematic blocks be

Re: Reinitializing software from hardware clock?

2018-01-10 Thread Maximilian Pichler
On Wed, Jan 10, 2018 at 6:50 PM, Mike Larkin wrote: >> > My question is: Can OpenBSD be told initialize the software from the >> > hardware clock again after the system is booted? > This does occur on occasion; for example, when running an OpenBSD vmm(4) > guest, vmd(8)

Re: Reinitializing software from hardware clock?

2018-01-10 Thread Maximilian Pichler
On Thu, Jan 11, 2018 at 2:23 AM, Mike Larkin wrote: >> Following your hint at vmmci and looking at >> https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pv/vmmci.c.diff?r1=1.2=1.3=h >> it looks like inittodr(9) would reinitialize the software clock. >> However it seems to

Re: no valid ntpd peers

2018-01-10 Thread Maximilian Pichler
On Wed, Jan 10, 2018 at 6:05 PM, Stuart Henderson <s...@spacehopper.org> wrote: > On 2018/01/10 09:43, Maximilian Pichler wrote: >> $ doas rdate -nvp pool.ntp.org >> rdate: Unable to receive NTP packet from server: No route to host > > This usually indicate

Reinitializing software from hardware clock?

2018-01-10 Thread Maximilian Pichler
My vague understanding of how OpenBSD keeps track of time is: * At boot the software clock (the value returned by gettimeofday) is initialized from the hardware clock (the one with the coin-shaped battery). * The software clock is then incremented hz(9) times a second by a CPU interrupt. My

Re: no valid ntpd peers

2018-01-10 Thread Maximilian Pichler
On Wed, Jan 10, 2018 at 11:55 AM, x9p wrote: > I had similar problems once under VirtualBox, other OS. try switching from > NAT to BRIDGED > mode and give it a try. Thanks, but no luck on my end. Any insight into why this should have helped?

Re: no valid ntpd peers

2018-01-09 Thread Maximilian Pichler
I should probably mention that this is OpenBSD 6.2 running under VirtualBox on MacOS. On Mon, Jan 8, 2018 at 10:02 PM, Stuart Henderson wrote: > How does "rdate -nvp pool.ntp.org" look? $ doas rdate -nvp pool.ntp.org rdate: Unable to receive NTP packet from server: No

no valid ntpd peers

2018-01-08 Thread Maximilian Pichler
Hi, For some reason my ntpd doesn't get any replies from the time servers. They can however be pinged, so I'm unsure what causes this. Any ideas? Thanks! Max $ doas ntpctl -s all 0/4 peers valid, constraint offset 107s, clock unsynced peer wt tl st next poll offset delay

Re: Resume fails with connected USB hub

2018-01-30 Thread Maximilian Pichler
On Tue, Jan 30, 2018 at 5:54 PM, Theo de Raadt wrote: > Is that a pure USB dock, or is it something else? Does it connect with > a pure USB connector? I'm not sure what "pure" means. It is a box with one female USB-C, HDMI, USB-A plug each, and it has a cable with a male

Resume fails with connected USB hub

2018-01-29 Thread Maximilian Pichler
Hi, Resume after suspend fails on a Zenbook UX390UA if (and only if) the USB hub/adapter that comes with it is connected. When resume is attempted by pressing a key, the fan starts to spin, but the screen remains blank. The laptop can no longer be ssh'ed into. This is fully reproducible and

Re: "uhub1: device problem, disabling port 1" on Zenbook

2018-01-28 Thread Maximilian Pichler
On Sun, Jan 28, 2018 at 8:12 PM, Kenneth Gober wrote: > When you reach the "(I)nstall, (U)pgrade, (A)utoinstall or (S)hell?" > prompt, enter S then type the following commands to create the sd1 > device entries: > > # cd /etc > # ./MAKEDEV sd1 Thanks! I had confused the absence

"uhub1: device problem, disabling port 1" on Zenbook

2018-01-28 Thread Maximilian Pichler
Hi, I'm trying to install OpenBSD 6.2 on a Zenbook (UX390UA) but it is unable to find the installer USB key (after booting from it). The key is connected via the USB-A/C adapter/hub that comes with the laptop. The same hardware works fine under Linux. The initial dmesg (full output below) has:

Re: Resume fails with connected USB hub

2018-02-06 Thread Maximilian Pichler
On Wed, Jan 31, 2018 at 1:15 PM, Eric Furman wrote: > What he is saying is that for this to be properly fixed he needs to have > actual possession of one of these machines. Some one needs to donate > one so they can fix the problem. Unfortunately I currently don't have

Re: FTP login delay

2018-06-21 Thread Maximilian Pichler
e to get things working at least! On Thu, Jun 21, 2018 at 10:09 AM, Janne Johansson wrote: > > > Den ons 20 juni 2018 kl 23:28 skrev Maximilian Pichler > : >> >> I've enabled ftpd and am experiencing very long delays (consistently >> 75 seconds) when logging in from local

Re: How to copy n bytes from stdin to stdout?

2018-06-21 Thread Maximilian Pichler
On Thu, Jun 21, 2018 at 3:15 PM, Daniel Hartmeier wrote: > I think they meant dd and just didn't care about efficiency: > > http://austingroupbugs.net/bug_view_page.php?bug_id=407 Thanks for digging this out! > Does ghead -c beat a simple buffer loop? Your head-c.c seems to have the same

Re: How to copy n bytes from stdin to stdout?

2018-06-21 Thread Maximilian Pichler
On Thu, Jun 21, 2018 at 11:05 AM, Abel Abraham Camarillo Ojeda wrote: > $ cat file | perl -ne 'BEGIN { $/ = \1 } print if $. <= 5; exit 0 if $. == 5' This is much slower than 'dd ibs=1'

How to copy n bytes from stdin to stdout?

2018-06-20 Thread Maximilian Pichler
dd bs=1 count=1234567 will copy 1234567 bytes and then stop, but it's slow. I can't seem to think of a faster command that also works in the presence of short reads and blocking. There is ghead -c from coreutils in ports, but this should be possible in base, no? Max

Re: How to copy n bytes from stdin to stdout?

2018-06-20 Thread Maximilian Pichler
On Wed, Jun 20, 2018 at 5:50 PM, Solene Rapenne wrote: > it's slow because it flushes the output every byte, what would you > expect? Maybe you should do in a different manner. I know, my question is what such a different manner might look like. :)

Re: New laptop recommendations

2018-06-20 Thread Maximilian Pichler
I'm quite happy with my Asus Zenbook 3 (UX390UA). It's thinner, lighter and more powerful than the current MacBooks and costs about 1100 EUR now. On Tue, Jun 19, 2018 at 12:37 PM, Rupert Gallagher wrote: > I'm done with my 10 years old 1200EUR MacBookPro. It served me well, every > day, but is

Re: virtual colocation? Amazon/cloud?

2018-06-21 Thread Maximilian Pichler
I've had a very good experience with the Netherlands-based transip. Their pricing is competitive (especially for storage if you don't want do deal with anything S3-like), they are reliable, and have also been good at keeping up with new OpenBSD releases: https://www.transip.eu/vps/openbsd/ On

USB ethernet adapter: ure0: usb errors on rx: IOERROR

2018-08-04 Thread Maximilian Pichler
On my machine the Rankie USB ethernet adapter sometimes stops working, usually after a period of inactivity. The following messages appear in the log: ure0: usb errors on rx: IOERROR uhid0 detached uhidev0 detached ugen0 detached sd1 detached scsibus2 detached umass0 detached sd2 detached

Re: clearing the disk cache

2018-07-04 Thread Maximilian Pichler
Thanks. :) But isn't "bufcachepercent < 5" there for a reason? Will my machine now catch fire? On Wed, Jul 4, 2018 at 10:23 AM, Boudewijn Dijkstra wrote: > Op Tue, 03 Jul 2018 16:06:37 +0200 schreef Maximilian Pichler > : >> >> Now I'm resorting to "s

Re: 4k display on integrated Intel graphics?

2018-07-10 Thread Maximilian Pichler
AM, Bryan Vyhmeister wrote: > On Fri, Jun 29, 2018 at 11:04:12PM +0200, Maximilian Pichler wrote: >> Thanks for explaining. Some shaking could be lived with... > > I went ahead and bought a Plugable USB-C to DisplayPort cable to confirm > that there are no issues. I unplugged

Re: Resume fails with connected USB hub

2018-07-11 Thread Maximilian Pichler
On Mon, Jan 29, 2018 at 6:43 PM, Maximilian Pichler wrote: > Resume after suspend fails on a Zenbook UX390UA if (and only if) the > USB hub/adapter that comes with it is connected. This issue no longer occurs with current from Jun 21st. I don't know which change (since Jan 24) is responsible.

xbacklight on second monitor

2018-07-11 Thread Maximilian Pichler
Is it possible to change the backlight of a second monitor? It seems that xbacklight can only change the backlight of the first monitor, i.e. in my case the laptop's integrated display. I'd like to change the backlight of an external monitor. Here it is suggested to use a tool called ddcutil.

4k display on integrated Intel graphics?

2018-06-28 Thread Maximilian Pichler
Can OpenBSD drive a 4k display on integrated Intel graphics via HDMI these days? Specifically, I'm hoping to connect it to my laptop's "Intel HD Graphics 620" (Kaby Lake) via a single HDMI cable (which would go into a USB-C-to-HDMI adapter). (I'm aware something similar has been asked two years

Re: 4k display on integrated Intel graphics?

2018-06-29 Thread Maximilian Pichler
> It worked for me last time I tried, but I could only drive 30Hz. Probably an > adapter limitation. The spec indeed says it can only do 30Hz over HDMI, but 60Hz over DP. So thanks for pointing this out, you saved me from buying the wrong cable.