Multimedia keys not being recognized
Hi, I'm trying to set the multimedia keys of my keyboard to de something. It have three simple keys with shutdown, internet and mail figures on it. This is the keyboard [http://www.satellite-computer.com/content/?900.html] a standard simple one. First I tried to detect them using xev(1), but when I press the keys, nothing happens. Someone on irc, pointed me to try usbhidaction(1), and to run usbhidctl to detect the keys. Running usbhidctl first made me note that sometimes the command fails, and gives: usbhidctl: USB_GET_REPORT (probably not supported by device): Bad address but when it works I get: Keyboard.Num_Lock=1 Keyboard.Caps_Lock=0 Keyboard.Scroll_Lock=0 Keyboard.Keyboard_LeftControl=0 Keyboard.Keyboard_LeftShift=0 Keyboard.Keyboard_LeftAlt=0 Keyboard.Keyboard_Left_GUI=0 Keyboard.Keyboard_RightControl=0 Keyboard.Keyboard_RightShift=0 Keyboard.Keyboard_RightAlt=0 Keyboard.Keyboard_Right_GUI=0 Keyboard.Keyboard_Return_(ENTER)=1 [0] Keyboard.No_Event=1 [1] Keyboard.No_Event=1 [2] Keyboard.No_Event=1 [3] Keyboard.No_Event=1 [4] Keyboard.No_Event=1 [5] So, where is the keys... In this process, I noted another bug that could be related(?), my Scroll Lock LED don't turn on, the key is recognized by xev(1) (... keycode 78 (keysym 0xff14, Scroll_Lock)...) which means it is working but not by wsconsctĺ neither by usbhidctl, see: Only Caps_Lock on: $ usbhidctl -f /dev/wskbd | grep Lock Keyboard.Num_Lock=0 Keyboard.Caps_Lock=1 Keyboard.Scroll_Lock=0 $ wsconsctl | grep led keyboard.ledstate=1 Ok, Caps_Lock is good, now, only Num_Lock on: $ wsconsctl | grep led keyboard.ledstate=2 $ usbhidctl -f /dev/wskbd | grep Lock Keyboard.Num_Lock=1 Keyboard.Caps_Lock=0 Keyboard.Scroll_Lock=0 Why wsconsctl is detecting it as two keys? With Caps_Lock + Num_Lock on I get ledstate=3, as all the keys was on. Is these errors related? Can someone help me to solve? My keyboard wsconsctl related output: $ wsconsctl | grep keyboard keyboard.type=pc-xt keyboard.bell.pitch=400 keyboard.bell.period=100 keyboard.bell.volume=50 keyboard.bell.pitch.default=400 keyboard.bell.period.default=100 keyboard.bell.volume.default=50 keyboard.repeat.del1=400 keyboard.repeat.deln=100 keyboard.repeat.del1.default=400 keyboard.repeat.deln.default=100 keyboard.ledstate=2 keyboard.encoding=br keyboard1.type=usb keyboard1.bell.pitch=400 keyboard1.bell.period=100 keyboard1.bell.volume=50 keyboard1.bell.pitch.default=400 keyboard1.bell.period.default=100 keyboard1.bell.volume.default=50 keyboard1.repeat.del1=400 keyboard1.repeat.deln=100 keyboard1.repeat.del1.default=400 keyboard1.repeat.deln.default=100 keyboard1.ledstate=2 keyboard1.encoding=br If you need more info please ask. -- Regards Henrique Lengler
Re: Another working USB WiFi adapter:
On Thu, Sep 03, 2015 at 10:50:02AM +0200, Stefan Sperling wrote: > On Thu, Sep 03, 2015 at 08:53:11AM +0100, Craig Skinner wrote: > > For the archives, > > > > A friend loaned me this while I gave an Unbound & NSD talk in a pub: > > > > TP-Link TL-WN722N "High-Gain 150Mbps" > > > > athn1 at uhub0 port 2 "ATHEROS USB2.0 WLAN" rev 2.00/1.08 addr 2 > > athn1: AR9271 rev 1 (1T1R), ROM rev 13, address c0:4a:00:1f:f6:3e > > > > $ uname -mrsv > > OpenBSD 5.6 GENERIC.MP#299 i386 > > > > Cheers! > > I'm surprised it works for you at all on 5.6. It might actually crash > your machine quite easily because of bugs in the driver. And scanning > is rather broken with this device in 5.6 (won't see more than 8 APs). > > Support for this device was improved a lot for 5.7. See the changelog at > http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/dev/usb/if_athn_usb.c > > There are still some issues, though. Some people are seeing frequent > device timeouts which I can't reproduce. And hostap mode seems to be broken. > > If you have time to do some tests (with -current), I'd be interested to > know if hostap works. To test, set it up for hostap mode, try to assoiate > to it, assign IPs, and ping across. > Does the device send beacons in hostap mode? Beacons should be visible > from another computer with a wireless interface in monitor mode on the > same channel, and tcpdump -y IEEE802_11_RADIO -v > > Do you see frequent or occasional device timeouts when using the device > normally? If so, can you figure out which conditions trigger them? I use this device daily (have two of them), and have some problems with it. Frequent device timeouts as you said, already changed the router, wifi channel, and still the problem. Sometimes programs takes some time to connect, like when I'm browsing the web and open irc, it takes some time to connect with the server. Usually timeouts happens when I do a new connection, like I never had a timeout when only watching a video on youtube, it happens like when I open a new site. It has been difficult to me to figure out what causes this error, and try to reproduce it, it looks totally random, some days I get a lot of timeouts, others I get no one. -- Regards Henrique Lengler
Re: frequently wifi athn device timeout
On Wed, Apr 08, 2015 at 01:17:01PM +0200, Stefan Sperling wrote: On Tue, Mar 17, 2015 at 03:36:03PM -0300, Henrique Lengler wrote: My intenert falled again, but with this option I didn't received device timeout, I received this: Hi Henrique, The output you sent shows things are working fine, it doesn't show any problem. So we're still at square 1 with this issue. Can somebody please try to provide a recipe that triggers the problem reliably? Note that a device timeout implies the device has failed to send a frame. This could happen because: - there is some transmission problem with the device itself - some USB problem is preventing transmission - some USB problem is preventing notification of successfull transmission to the driver - the AP failed to ACK the frame, either because it did not receive it (out of range, interference, ...) or because the athn device could not receive the ACK from the AP Without more information it's difficult to say what's going on. If you're in a position to run tcpdump -y IEEE802_11_RADIO on the AP please watch for frames sent from the USB device and try to figure out where the frame is lost. Please also see http://marc.info/?l=openbsd-miscm=141501277608157w=2 which is about the same driver on PCI instead of USB. As long as running 'ifconfig athn0 down up' restores connectivity on USB I have more important issues to look at and won't spend more of my time trying to reproduce this problem unless more information is provided. So I said I am receiving less timeouts, thats true. But yesterday and today again something happened, that could not be solved by simply running 'ifconfig athn0 down up'. This is what I received (messages from dmesg). athn0: device timeout athn0: device timeout athn0: device timeout athn0: device timeout athn0: firmware command 0x17 timed out athn0: firmware command 0x18 timed out athn0: firmware command 0x3 timed out athn0: firmware command 0x17 timed out athn0: firmware command 0x17 timed out athn0: firmware command 0x18 timed out athn0: firmware command 0x17 timed out athn0: firmware command 0x17 timed out athn0: firmware command 0x18 timed out athn0: firmware command 0x17 timed out athn0: firmware command 0x17 timed out athn0: firmware command 0x18 timed out athn0: firmware command 0x17 timed out athn0: firmware command 0x17 timed out athn0: firmware command 0x18 timed out athn0: firmware command 0x17 timed out athn0: firmware command 0x17 timed out athn0: firmware command 0x18 timed out athn0: firmware command 0x17 timed out athn0: firmware command 0x17 timed out athn0: firmware command 0x18 timed out athn0: firmware command 0x17 timed out athn0: firmware command 0x17 timed out The four first messages are normal, and can be solved by reseting connections. But a new type appeared, and these I couldn't solve running ifconfig. When I ran 'ifconfig athn0 down up' it didn't anything, and I wasn't able to close the process. Reboot was the only option. I ran this (don't know if it gives good information): # tcpdump -L tcpdump: WARNING: snaplen raised from 116 to 160 tcnk type supported: PFLOG # tcpdump -y PFLOG tcpdump: WARNING: snaplen raised from 116 to 160 tcpdump: listening on pflog0, link-type PFLOG pdump: WARNING: snaplen raised from 116 to 160 -- Regards Henrique Lengler
Re: .kshrc Definitions under X
On Sat, Apr 11, 2015 at 10:24:47AM +0200, Eckehard Berns wrote: On Fri, Apr 10, 2015 at 09:03:26PM -0300, Henrique Lengler wrote: On Sun, Apr 05, 2015 at 09:22:03PM -0700, Philip Guenther wrote: If you start X with xdm, then you need to either A) manually set ENV (or source your entire .profile) from your .xsession that xdm invokes, OR B) tell xterm to start the shell inside it as a login shell, so that *that* will read your .profile. This can be done by either: B1) start xterm with the -ls option, or B2) set *loginShell: true in your X resource database (c.f. xrdb(1)) [...] I know that xterm isn't being started with -ls option and it solve thw problem. But this couldn't be normal, is it? Because my intention is not to use only xterm but also others term. emulators like st, and I would like to have they working as it does in any other system. If this is normal, will I need to configure and make sure that every term. emulator I'm using is loading .profile. ksh is a bit special in the part that it won't read any startup file unless it is started as a login shell or it sees the ENV environment variable. (ksh has its reasons for this behavior.) What I'm doing is a variant of option A above. I use .xinitrc as my main startup file for X. Since xdm starts .xsession instead I simply have the line exec /bin/ksh -l ~/.xinitrc in it. That telles ksh to run .xinitrc as a login shell and thus sources .profile first. That way ENV is set properly and every terminal should work as expected. Starting X with startx also is working properly since it inherits the ENV variable from my console login. So it is working now. I don't know what was the problem. It started to work today when I turned on my computer, this is strange. I thought that only pressing Control-D until I logout and then login again would apply and load new settings. Now it is working and I have a normal setup: $ cat .kshrc alias ls='ls -p' alias clr=clear alias p='ps -l' alias df='df -h' $ cat .profile export ENV=$HOME/.kshrc export LC_CTYPE=en_US.UTF-8 export GOPATH=$HOME/go PATH=$PATH:$HOME/Scripts And looks like there is no need to 'XTerm*loginShell: true' on .Xdefaults. I hope it will stay working. -- Regards Henrique Lengler
Re: .kshrc Definitions under X
On Fri, Apr 10, 2015 at 12:22:45AM -0400, dan mclaughlin wrote: On Thu, 9 Apr 2015 16:58:29 -0300 Henrique Lengler henriquel...@opmbx.org wrote: On Sun, Apr 05, 2015 at 09:22:03PM -0700, Philip Guenther wrote: On Sun, Apr 5, 2015 at 9:12 PM, Andrew Fresh and...@afresh1.com wrote: On Sun, Apr 05, 2015 at 10:50:47PM -0300, Henrique Lengler wrote: And it is called in ~.profile with this: . /home/henri/.kshrc The problem is that these definitions work out of X, in the console, logged as the same user (henri) but don't work under X. I open a xterm window and and type clr, I receive: /bin/ksh: clr: not found But out of X it works, can someone help me to make this thing work normally? What I have done is set ENV=$HOME/.kshrc in .profile, then whenever you open a new shell, it will use that file as a shell startup file. That's step one, but whether it's enough depends on how you start X. If you start X from the command line with 'startx' then yes, using export ENV=$HOME/.kshrc in your .profile should be enough, because your X clients will inherit that in the environment from startx. If you start X with xdm, then you need to either A) manually set ENV (or source your entire .profile) from your .xsession that xdm invokes, OR B) tell xterm to start the shell inside it as a login shell, so that *that* will read your .profile. This can be done by either: B1) start xterm with the -ls option, or B2) set *loginShell: true in your X resource database (c.f. xrdb(1)) Still not able to do this. My /home/henri/.profile have this: export ENV=$HOME/.kshrc export LC_CTYPE=en_US.UTF-8 export GOPATH=$HOME/go PATH=$PATH:$HOME/Scripts My .kshrc - export PS1='$PWD $ ' alias quit=exit alias clr=clear alias logout=exit alias bye=exit alias j=jobs BUT printenv says: -- /home/henri $ printenv _=/usr/bin/printenv XAUTHORITY=/home/henri/.Xauthority LOGNAME=henri WINDOWPATH=5 WINDOWID=6291457 HOME=/home/henri LC_CTYPE=en_US.UTF-8 DISPLAY=:0 GOPATH=/home/henri/go MAIL=/var/mail/henri PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/home/henri/Scripts SHELL=/bin/ksh PS1=$PWD $ TERM=st-256color USER=henri Looks like it reads the PS1 env but not the rest, or they don't work. Also I don't intend to use only xterm, but others term. emulators. -- Regards Henrique Lengler try adding some 'echo' statements in all of your startup scripts. ie echo sourcing .profile echo sourcing .kshrc to see if it is running them. then maybe add 'printenv' and 'alias' to some to see what they print out during startup eg alias clr alias clr=clear alias clr the first should say 'not found', the one after should print your definition. It behave like this, when I log into ksh out of X. This aliases are being applied correctly out of X, the problem is inside it. -- Regards Henrique Lengler
Re: .kshrc Definitions under X
On Fri, Apr 10, 2015 at 01:05:13PM +0200, Benny Lofgren wrote: On 2015-04-10 04:21, Henrique Lengler wrote: Very strange. I can manually set a alias running: alias clr=clear # an then run the clr command will work. But If I try running the .kshrc file it don't work: /home/henri $ ./.kshrc /home/henri $ clr /bin/ksh: clr: not found /home/henri $ sh .kshrc /home/henri $ clr /bin/ksh: clr: not found Why this doesn't work is because when you execute a script like above what the shell does is start a new shell, run the script in that shell and wait for it to exit before you get the next prompt. What that means is that the *new* shell sets your aliases, shell variables and funtions, but they are then forgotten again when that shell exits. Your actual command shell never gets to see what is done. If you on the other hand execute the script the way patrick keshishian suggests in his mail (*), a process normally called sourcing the script, it runs in the same shell that you give commands to, just as if you had entered the script by hand with your keyboard. And then it will Just Work tm. :-) (*) Like this: $ . ~/.kshrc Ok, so executing it like this makes it work. I puted some checks after each line, like this: export PS1='$PWD $ ' echo ALIAS 1 alias ls='ls -p' alias clr alias clr=clear alias clr alias p='ps -l' alias df='df -h' -- And I receive this: --- /home/henri $ . ~/.kshrc ALIAS 1 clr alias not found clr=clear -- So the problem is to make this work under X. The alias are working out of X and in X if applied by hand. From your questions I'm deducing that you are not very familiar with how the shell really works, especially when it comes to the interaction between unix processes. This is very useful knowledge! The best source for information is always the man page! ksh's man page is very big and probably intimidating at first, but I really, really recommend that you do man ksh and read it! It contains the answer to most of your problems, and a good understanding of how the shell works is essential for any budding unix hacker. :-) I will read it. -- Regards Henrique Lengler
Re: .kshrc Definitions under X
On Fri, Apr 10, 2015 at 07:51:01PM -0400, dan mclaughlin wrote: On Fri, 10 Apr 2015 18:49:02 -0300 Henrique Lengler henriquel...@opmbx.org wrote: On Fri, Apr 10, 2015 at 12:22:45AM -0400, dan mclaughlin wrote: On Thu, 9 Apr 2015 16:58:29 -0300 Henrique Lengler henriquel...@opmbx.org wrote: On Sun, Apr 05, 2015 at 09:22:03PM -0700, Philip Guenther wrote: On Sun, Apr 5, 2015 at 9:12 PM, Andrew Fresh and...@afresh1.com wrote: On Sun, Apr 05, 2015 at 10:50:47PM -0300, Henrique Lengler wrote: And it is called in ~.profile with this: . /home/henri/.kshrc The problem is that these definitions work out of X, in the console, logged as the same user (henri) but don't work under X. I open a xterm window and and type clr, I receive: /bin/ksh: clr: not found But out of X it works, can someone help me to make this thing work normally? What I have done is set ENV=$HOME/.kshrc in .profile, then whenever you open a new shell, it will use that file as a shell startup file. That's step one, but whether it's enough depends on how you start X. If you start X from the command line with 'startx' then yes, using export ENV=$HOME/.kshrc in your .profile should be enough, because your X clients will inherit that in the environment from startx. If you start X with xdm, then you need to either A) manually set ENV (or source your entire .profile) from your .xsession that xdm invokes, OR B) tell xterm to start the shell inside it as a login shell, so that *that* will read your .profile. This can be done by either: B1) start xterm with the -ls option, or B2) set *loginShell: true in your X resource database (c.f. xrdb(1)) Still not able to do this. My /home/henri/.profile have this: export ENV=$HOME/.kshrc export LC_CTYPE=en_US.UTF-8 export GOPATH=$HOME/go PATH=$PATH:$HOME/Scripts My .kshrc - export PS1='$PWD $ ' alias quit=exit alias clr=clear alias logout=exit alias bye=exit alias j=jobs BUT printenv says: -- /home/henri $ printenv _=/usr/bin/printenv XAUTHORITY=/home/henri/.Xauthority LOGNAME=henri WINDOWPATH=5 WINDOWID=6291457 HOME=/home/henri LC_CTYPE=en_US.UTF-8 DISPLAY=:0 GOPATH=/home/henri/go MAIL=/var/mail/henri PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/home/henri/Scripts SHELL=/bin/ksh PS1=$PWD $ TERM=st-256color USER=henri Looks like it reads the PS1 env but not the rest, or they don't work. Also I don't intend to use only xterm, but others term. emulators. try adding some 'echo' statements in all of your startup scripts. ie echo sourcing .profile echo sourcing .kshrc to see if it is running them. then maybe add 'printenv' and 'alias' to some to see what they print out during startup eg alias clr alias clr=clear alias clr the first should say 'not found', the one after should print your definition. It behave like this, when I log into ksh out of X. This aliases are being applied correctly out of X, the problem is inside it. it really sounds like xterm is not starting a login shell. what is the output of: $ ps | grep xterm 27150 p6 I 0:00.01 /bin/sh -c xterm -fg white -bg black -ls 13224 p6 I 0:05.29 xterm 6542 p6 I 0:01.18 xterm 29777 p6 I 0:00.00 /bin/sh -c xterm -fg white -bg black -ls you should see an '-ls' option at the end as above. if not, that is your problem (it's not invoking a login shell), and this should work: I know that xterm isn't being started with -ls option and it solve thw problem. But this couldn't be normal, is it? Because my intention is not to use only xterm but also others term. emulators like st, and I would like to have they working as it does in any other system. If this is normal, will I need to configure and make sure that every term. emulator I'm using is loading .profile. On Sun, Apr 05, 2015 at 09:22:03PM -0700, Philip Guenther wrote: B) tell xterm to start the shell inside it as a login shell, so that *that* will read your .profile. This can be done by either: B1) start xterm with the -ls option, or B2) set *loginShell: true in your X resource database (c.f. xrdb(1)) also, xterm may be invoked elsewhere like in your ~/.xinitrc, so you would need to fix it there, but the xrdb option should take care of that. -- Regards Henrique Lengler
Re: .kshrc Definitions under X
On Sun, Apr 05, 2015 at 09:22:03PM -0700, Philip Guenther wrote: On Sun, Apr 5, 2015 at 9:12 PM, Andrew Fresh and...@afresh1.com wrote: On Sun, Apr 05, 2015 at 10:50:47PM -0300, Henrique Lengler wrote: And it is called in ~.profile with this: . /home/henri/.kshrc The problem is that these definitions work out of X, in the console, logged as the same user (henri) but don't work under X. I open a xterm window and and type clr, I receive: /bin/ksh: clr: not found But out of X it works, can someone help me to make this thing work normally? What I have done is set ENV=$HOME/.kshrc in .profile, then whenever you open a new shell, it will use that file as a shell startup file. That's step one, but whether it's enough depends on how you start X. If you start X from the command line with 'startx' then yes, using export ENV=$HOME/.kshrc in your .profile should be enough, because your X clients will inherit that in the environment from startx. If you start X with xdm, then you need to either A) manually set ENV (or source your entire .profile) from your .xsession that xdm invokes, OR B) tell xterm to start the shell inside it as a login shell, so that *that* will read your .profile. This can be done by either: B1) start xterm with the -ls option, or B2) set *loginShell: true in your X resource database (c.f. xrdb(1)) Still not able to do this. My /home/henri/.profile have this: export ENV=$HOME/.kshrc export LC_CTYPE=en_US.UTF-8 export GOPATH=$HOME/go PATH=$PATH:$HOME/Scripts My .kshrc - export PS1='$PWD $ ' alias quit=exit alias clr=clear alias logout=exit alias bye=exit alias j=jobs BUT printenv says: -- /home/henri $ printenv _=/usr/bin/printenv XAUTHORITY=/home/henri/.Xauthority LOGNAME=henri WINDOWPATH=5 WINDOWID=6291457 HOME=/home/henri LC_CTYPE=en_US.UTF-8 DISPLAY=:0 GOPATH=/home/henri/go MAIL=/var/mail/henri PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/home/henri/Scripts SHELL=/bin/ksh PS1=$PWD $ TERM=st-256color USER=henri Looks like it reads the PS1 env but not the rest, or they don't work. Also I don't intend to use only xterm, but others term. emulators. -- Regards Henrique Lengler
Re: .kshrc Definitions under X
On Thu, Apr 09, 2015 at 10:28:02PM +0200, Jan Vlach wrote: Hi Henrique, I can see that both .kshrc and .profile are applied in printenv. Are you missing aliases? What is the output of alias command? /home/henri $ alias autoload='typeset -fu' functions='typeset -f' hash='alias -t' history='fc -l' integer='typeset -i' local=typeset login='exec login' nohup='nohup ' r='fc -e -' stop='kill -STOP' type='whence -v' On Sun, Apr 05, 2015 at 09:22:03PM -0700, Philip Guenther wrote: On Sun, Apr 5, 2015 at 9:12 PM, Andrew Fresh and...@afresh1.com wrote: On Sun, Apr 05, 2015 at 10:50:47PM -0300, Henrique Lengler wrote: And it is called in ~.profile with this: . /home/henri/.kshrc The problem is that these definitions work out of X, in the console, logged as the same user (henri) but don't work under X. I open a xterm window and and type clr, I receive: /bin/ksh: clr: not found But out of X it works, can someone help me to make this thing work normally? What I have done is set ENV=$HOME/.kshrc in .profile, then whenever you open a new shell, it will use that file as a shell startup file. That's step one, but whether it's enough depends on how you start X. If you start X from the command line with 'startx' then yes, using export ENV=$HOME/.kshrc in your .profile should be enough, because your X clients will inherit that in the environment from startx. If you start X with xdm, then you need to either A) manually set ENV (or source your entire .profile) from your .xsession that xdm invokes, OR B) tell xterm to start the shell inside it as a login shell, so that *that* will read your .profile. This can be done by either: B1) start xterm with the -ls option, or B2) set *loginShell: true in your X resource database (c.f. xrdb(1)) Still not able to do this. My /home/henri/.profile have this: export ENV=$HOME/.kshrc export LC_CTYPE=en_US.UTF-8 export GOPATH=$HOME/go PATH=$PATH:$HOME/Scripts My .kshrc - export PS1='$PWD $ ' alias quit=exit alias clr=clear alias logout=exit alias bye=exit alias j=jobs BUT printenv says: -- /home/henri $ printenv _=/usr/bin/printenv XAUTHORITY=/home/henri/.Xauthority LOGNAME=henri WINDOWPATH=5 WINDOWID=6291457 HOME=/home/henri LC_CTYPE=en_US.UTF-8 DISPLAY=:0 GOPATH=/home/henri/go MAIL=/var/mail/henri PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/home/henri/Scripts SHELL=/bin/ksh PS1=$PWD $ TERM=st-256color USER=henri Looks like it reads the PS1 env but not the rest, or they don't work. Also I don't intend to use only xterm, but others term. emulators. -- Regards Henrique Lengler -- Be the change you want to see in the world. -- Regards Henrique Lengler
Re: .kshrc Definitions under X
On Thu, Apr 09, 2015 at 04:47:38PM -0400, Dutch Ingraham wrote: Still not able to do this. My /home/henri/.profile have this: export ENV=$HOME/.kshrc export LC_CTYPE=en_US.UTF-8 export GOPATH=$HOME/go PATH=$PATH:$HOME/Scripts My .kshrc - export PS1='$PWD $ ' alias quit=exit alias clr=clear alias logout=exit alias bye=exit alias j=jobs BUT printenv says: -- /home/henri $ printenv _=/usr/bin/printenv XAUTHORITY=/home/henri/.Xauthority LOGNAME=henri WINDOWPATH=5 WINDOWID=6291457 HOME=/home/henri LC_CTYPE=en_US.UTF-8 DISPLAY=:0 GOPATH=/home/henri/go MAIL=/var/mail/henri PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/home/henri/Scripts SHELL=/bin/ksh PS1=$PWD $ TERM=st-256color USER=henri Looks like it reads the PS1 env but not the rest, or they don't work. Also I don't intend to use only xterm, but others term. emulators. -- Regards Henrique Lengler While there are other things above that may cause you issues, the main one I see is the use of the st terminal emulator; I've had trouble with that in the past. Have you tried just starting with xterm and troubleshooting from there forward? Yes, I am trying both, but xterm don't work too by default, only with -ls option. -- Regards Henrique Lengler
Re: frequently wifi athn device timeout
On Wed, Apr 08, 2015 at 01:17:01PM +0200, Stefan Sperling wrote: Hi Henrique, The output you sent shows things are working fine, it doesn't show any problem. So we're still at square 1 with this issue. I would say that lately I am receiving less timeouts, last day I got only about one or two, it is not perfect, but the system is usable. I am suspecting about some other device connected to my network, but also think that this could also be a software problem, since I had no problem with this device on Linux. Maybe it is the capacity of it recover automatically from a fall. Can somebody please try to provide a recipe that triggers the problem reliably? I will look for a way to systematically reproduce this problem. Note that a device timeout implies the device has failed to send a frame. This could happen because: - there is some transmission problem with the device itself - some USB problem is preventing transmission - some USB problem is preventing notification of successfull transmission to the driver - the AP failed to ACK the frame, either because it did not receive it (out of range, interference, ...) or because the athn device could not receive the ACK from the AP Without more information it's difficult to say what's going on. If you're in a position to run tcpdump -y IEEE802_11_RADIO on the AP please watch for frames sent from the USB device and try to figure out where the frame is lost. I will look at this. Please also see http://marc.info/?l=openbsd-miscm=141501277608157w=2 which is about the same driver on PCI instead of USB. As long as running 'ifconfig athn0 down up' restores connectivity on USB I have more important issues to look at and won't spend more of my time trying to reproduce this problem unless more information is provided. This is understandable, I will try to get more information, and discover the cause. Thanks; -- Regards Henrique Lengler
Re: jwm ; speedy window manager
On Mon, Apr 06, 2015 at 07:12:43PM -0400, Brian Callahan wrote: Or, and this is just a hypothesis, you don't have all those other things and FVWM lists those for convenience. I include CWM and FVWM, I don't know why include two WM. -- Regards Henrique Lengler
Re: jwm ; speedy window manager
On Mon, Apr 06, 2015 at 09:59:29AM +0900, Tuyosi Takesima wrote: thanks fo reply . i understand jwm's state at present. openbsd's default X window manager(i don't know it's name) is difficult to use especially non-english language user . OpenBSD have cwm and fvwm and I don't know why. -- Regards Henrique Lengler
.kshrc Definitions under X
Hi, I set somethings in my ~.kshrc file, it have: export PS1='$PWD $ ' alias ls='ls -p' alias clr=clear alias df='df -h' And it is called in ~.profile with this: . /home/henri/.kshrc The problem is that these definitions work out of X, in the console, logged as the same user (henri) but don't work under X. I open a xterm window and and type clr, I receive: /bin/ksh: clr: not found But out of X it works, can someone help me to make this thing work normally? -- Regards Henrique Lengler
Re: frequently wifi athn device timeout
On Thu, Mar 19, 2015 at 12:02:29AM -0300, Henrique Lengler wrote: Do you use irssi and/or chromium? To me looks like when I am running these apps, I get more timeouts. Could a app be the problem? I deleted all the packages and I am running withou chromium for 3 hours and I get no timeout. -- Regards Henrique Lengler
Re: frequently wifi athn device timeout
On Tue, Mar 17, 2015 at 11:12:34AM +0300, Evgeny Zhavoronkov wrote: I have the same problem with the latest snapshot and yes, the problem is with any AP and they are in range 1-5 meters. Do you use irssi and/or chromium? To me looks like when I am running these apps, I get more timeouts. -- Regards Henrique Lengler
Re: frequently wifi athn device timeout
On Tue, Mar 17, 2015 at 10:15:13AM +0100, Stefan Sperling wrote: On Tue, Mar 17, 2015 at 11:12:34AM +0300, Evgeny Zhavoronkov wrote: I have the same problem with the latest snapshot and yes, the problem is with any AP and they are in range 1-5 meters. I have the same adapter and I don't see the issue. What mode/channel are you using? The router config site says it is channel 1 - 2.412GHz Please provide output of ifconfig that clearly shows how you're connected. /home/henri $ ifconfig athn0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr f4:ec:38:90:cd:63 priority: 4 groups: wlan egress media: IEEE802.11 autoselect (DS1 mode 11g) status: active ieee80211: nwid linksys chan 1 bssid 00:23:69:fd:6d:8a -67dBm wpakey not displayed wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip inet 192.168.1.104 netmask 0xff00 broadcast 192.168.1.255 pflog0: flags=141UP,RUNNING,PROMISC mtu 33144 priority: 0 groups: pflog If you run 'ifconfig athn0 debug' do you then see any particular message when the timeout happens? My intenert falled again, but with this option I didn't received device timeout, I received this: athn0: AR9271 rev 1 (1T1R), ROM rev 13, address f4:ec:38:90:cd:63 athn0: begin active scan athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 2 mode 11g athn0: received probe_resp from 00:23:69:fd:6d:8a rssi -67 mode 11g athn0: received probe_resp from 00:23:69:fd:6d:8a rssi -69 mode 11g athn0: received beacon from 00:23:69:fd:6d:8a rssi -67 mode 11g athn0: received beacon from 00:23:69:fd:6d:8a rssi -67 mode 11g athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 3 mode 11g athn0: received beacon from 00:23:69:fd:6d:8a rssi -73 mode 11g athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 4 mode 11g athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 5 mode 11g athn0: received beacon from ec:f0:0e:04:f2:94 rssi -89 mode 11g athn0: received beacon from 00:26:5a:66:ef:32 rssi -87 mode 11g athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 6 mode 11g athn0: received beacon from 00:26:5a:66:ef:32 rssi -87 mode 11g athn0: received beacon from ec:f0:0e:04:f2:94 rssi -91 mode 11g athn0: received beacon from 10:fe:ed:3d:33:b0 rssi -86 mode 11g athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 7 mode 11g athn0: received beacon from 10:fe:ed:3d:33:b0 rssi -86 mode 11g athn0: received beacon from 00:26:5a:66:ef:32 rssi -85 mode 11g athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 8 mode 11g athn0: received beacon from 00:0c:42:66:e9:de rssi -88 mode 11g athn0: received beacon from 00:0c:42:66:e9:de rssi -88 mode 11g athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 9 mode 11g athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 10 mode 11g athn0: received beacon from 0c:96:bf:7f:98:2f rssi -85 mode 11g athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 11 mode 11g athn0: received beacon from dc:9f:db:54:7a:d4 rssi -88 mode 11g athn0: received beacon from 0c:96:bf:7f:98:2f rssi -82 mode 11g athn0: received beacon from 0c:96:bf:7f:98:2f rssi -83 mode 11g athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 12 mode 11g athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 13 mode 11g athn0: received beacon from dc:9f:db:58:91:a9 rssi -74 mode 11g athn0: received beacon from dc:9f:db:58:91:a9 rssi -79 mode 11g athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 14 mode 11g athn0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 1 mode 11g athn0: received probe_resp from 00:23:69:fd:6d:8a rssi -65 mode 11g athn0: received beacon from 00:23:69:fd:6d:8a rssi -65 mode 11g athn0: received beacon from 18:17:25:1d:fd:72 rssi -90 mode 11g athn0: received beacon from 00:23:69:fd:6d:8a rssi -65 mode 11g athn0: end active scan athn0: sending auth to 00:23:69:fd:6d:8a on channel 1 mode 11g athn0: received auth from 00:23:69:fd:6d:8a rssi -65 mode 11g athn0: sending assoc_req to 00:23:69:fd:6d:8a on channel 1 mode 11g athn0: received assoc_resp from 00:23:69:fd:6d:8a rssi -66 mode 11g athn0: associated with 00:23:69:fd:6d:8a ssid linksys channel 1 start 1Mb long p reamble short slot time athn0: received msg 1/4 of the 4-way handshake from 00:23:69:fd:6d:8a athn0: sending msg 2/4 of the 4-way handshake to 00:23:69:fd:6d:8a athn0: received msg 3/4 of the 4-way handshake from 00:23:69:fd:6d:8a athn0: sending msg 4/4 of the 4-way handshake to 00:23:69:fd:6d:8a athn0: received msg 1/2 of the group key handshake from 00:23:69:fd:6d:8a athn0: sending msg 2/2 of the group key handshake to 00:23:69:fd:6d:8a athn0: received msg 1/2 of the group key handshake from 00:23:69:fd:6d:8a athn0: sending msg 2/2 of the group key handshake to 00:23:69:fd:6d:8a -- Regards Henrique Lengler
frequently wifi athn device timeout
I have a tl-wn722n wifi usb adapter. It uses the athn0 driver. My connection is frequently getting down, and I am receiving a message athn0: device timeout. So to solve I need to run $ sudo sh /etc/netstart I am running -current and I already had this problem, with 5.6 -release and -stable too. I have applied this patch: https://marc.info/?l=openbsd-techm=142591741103252w=2 But anything changed. This is my /etc/hostname.athn0 nwid linksys wpakey foobar dhcp the dmesg is attached. -- Regards Henrique Lengler OpenBSD 5.7 (GENERIC.MP) #1: Fri Mar 13 21:11:13 BRT 2015 r...@henrique-pc.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8439386112 (8048MB) avail mem = 8210812928 (7830MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xec1f0 (82 entries) bios0: vendor American Megatrends Inc. version 1401 date 07/29/2014 bios0: ASUS All Series acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT LPIT SSDT SSDT MCFG HPET SSDT SSDT BGRT acpi0: wakeup devices UAR1(S4) PS2K(S4) PS2M(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) PXSX(S4) RP07(S4) PXSX(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) Core(TM) i7-4770K CPU @ 3.50GHz, 3498.41 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,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID 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, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3497.97 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,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 4 (application processor) cpu2: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3497.97 MHz 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,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 6 (application processor) cpu3: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3497.97 MHz 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,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 0, core 3, package 0 cpu4 at mainbus0: apid 1 (application processor) cpu4: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3497.97 MHz cpu4: 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,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID cpu4: 256KB 64b/line 8-way L2 cache cpu4: smt 1, core 0, package 0 cpu5 at mainbus0: apid 3 (application processor) cpu5: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3497.97 MHz cpu5: 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,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID cpu5: 256KB 64b/line 8-way L2 cache cpu5: smt 1, core 1, package 0 cpu6 at mainbus0: apid 5 (application processor) cpu6: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3497.97 MHz cpu6: 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,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2
Re: athn at usb fixes
On Wed, Mar 11, 2015 at 09:13:54AM +0100, Martin Pieuchot wrote: I reverted the previous diff because the fix introduced a regression. I posted a new fix that should solve your problem on tech@, please test this diff and report back, this will speedup the integration process: https://marc.info/?l=openbsd-techm=142591741103252w=2 Sorry for the delay, I will apply this patch now and test. I post here the result -- Regards Henrique Lengler
Re: athn at usb fixes
On Fri, Mar 13, 2015 at 09:03:35PM -0300, Henrique Lengler wrote: Sorry for the delay, I will apply this patch now and test. I post here the result I applied this and I continue with my internet getting down every time and receiving the message: athn0: device timeout So I need to re-run /etc/netstart -- Regards Henrique Lengler
Re: athn at usb fixes
I updated to the last source (-current), and I don't have more the old behaviour, but I am frequently receiving this: athn0: device timeout and so I need to re run $ sh /etc/netstart to make my connection work again. Could this be a driver problem, or timeout means the problem is local? -- Regards Henrique Lengler
Re: Audio probles like, slow response in applications that use audio
On Fri, Mar 06, 2015 at 09:07:40PM +0100, Alexandre Ratchov wrote: Yes we have modifications. Back around 2008, audio used to be very unsable on MP systems and sndiod used to run with lower priority. So using large buffers (around 500ms) was the only way to get stable audio. Nowadays, this is not necessary, but buffer sizes are still big because nobody tryed to reduce them. Maybe it's time now. Properly written software could probably work with 50ms buffers. Still I'm talking about 500ms. Not the 1-2s you mentioned, which I need to understand. Could you do the following: in one window, kill sndiod and start a new one as follows: sudo pkill sndiod SNDIO_DEBUG=4 sndiod -ddd 2/tmp/log in another window: mplayer /foo/bar.mp3 after few seconds, push the right arrow key to skip forward, wait few seconds, press q, kill sndiod and send me the /tmp/log file. When you hit the right arrow key, mplayer is supposed to take 500ms to react, but on your setup it takes 1-2s, right? The file is huge, so please send it off-list. I attached the file -- Regards Henrique Lengler snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup listen(/tmp/aucat-1000/aucat0|ini): created sock(sock|ini): created sock,rmsg,widl: AUTH message sio_sun_setpar: 0: trying pars = 48000/16/6 sio_sun_setpar: bpf = (4, 4) sio_sun_setpar: 0: trying round = 600 - (576, 576) sio_sun_setpar: blocksize ok sio_sun_setpar: 0: trying pars = 48000/16/6 sio_sun_setpar: bpf = (4, 4) sio_sun_setpar: 0: trying round = 960 - (960, 960) sio_sun_setpar: blocksize ok sock,rmsg,widl: HELLO message sock,rmsg,widl: hello from mplayer, mode = 1, ver 7 sock,rmsg,widl: using snd0 pst=cfg.default, mode = 1 mplayer0: overwritten slot 0 snd0 pst=cfg: device requested sio(rsnd/0|ini): created snd0 pst=ini: 48000Hz, s16le, play 0:1, rec 0:1, 9 blocks of 960 frames mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: SETPAR message mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: playback channels 0:1 - 0:1 mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: 44100Hz sample rate, 882 frame blocks mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: 11466 frame buffer mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: GETPAR message mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: GETPAR message mplayer0 vol=127,pst=ini,mmc=off,rmsg,widl: START message mplayer0 vol=127,pst=ini,mmc=off: playing s32le - s16le mplayer0 vol=127,pst=ini,mmc=off: allocated 11466/19404 fr buffers mplayer0 vol=127,pst=sta,mmc=off: 44100Hz, s32le, play 0:1, 13 blocks of 882 frames mplayer0 vol=127,pst=sta,mmc=off,rmsg,widl: building SETVOL message, vol = 127 snd0 pst=ini: device started snd0 pst=run: started mplayer0 vol=127,pst=run,mmc=off: attached at -7938, delta = 0 cmap: nch = 2, ostart = 0, onext = 0, istart = 0, inext = 0 dec: s32le, 2 channels resamp: 882/960 mplayer0 vol=127,pst=run,mmc=off: set weight: 23170/23170 12083: sio_revents: revents = 0x4, took 1537ns 35969: sio_revents: revents = 0x4, took 1257ns 47213: sio_revents: revents = 0x4, took 1257ns 57410: sio_revents: revents = 0x4, took 1257ns 67746: sio_revents: revents = 0x4, took 1258ns 78223: sio_revents: revents = 0x4, took 1187ns 95893: sio_revents: revents = 0x4, took 1257ns 000106788: sio_revents: revents = 0x4, took 1187ns 000117194: sio_revents: revents = 0x4, took 1187ns 0849340: clk+0 +0, wr+8 +0 rd:+0 +0 00020857890: clk+1 +0, wr+9 +0 rd:+0 +0 020856284: sio_revents: revents = 0x1, took 4330ns 020903706: sio_revents: revents = 0x0, took 1327ns 020928570: sio_revents: revents = 0x0, took 1327ns 00040880828: clk+2 +0, wr +10 +0 rd:+1 +0 040879291: sio_revents: revents = 0x1, took 5238ns 040912396: sio_revents: revents = 0x0, took 1257ns 040932370: sio_revents: revents = 0x0, took 1258ns 00060857879: clk+3 +0, wr +11 +0 rd:+2 +0 060856343: sio_revents: revents = 0x1, took 5098ns 060889308: sio_revents: revents = 0x0, took 1257ns 060908304: sio_revents: revents = 0x0, took 1258ns 00080882842: clk+4 +0, wr +12 +0 rd:+3 +0 080881515: sio_revents: revents = 0x1, took 3422ns 080911756: sio_revents: revents = 0x0, took 1257ns 080928937: sio_revents: revents = 0x0, took 1257ns 00100857728: clk+5 +0, wr +13 +0 rd:+4 +0 100856401: sio_revents: revents = 0x1, took 3492ns 100886852: sio_revents: revents = 0x0, took 1327ns 100904312: sio_revents: revents = 0x0, took 1327ns 00120890024: clk+6 +0, wr +14 +0 rd:+5 +0 120888697: sio_revents: revents = 0x1, took 3353ns 120918799: sio_revents: revents = 0x0, took 1187ns 120935770: sio_revents: revents = 0x0, took 1257ns 00140857647: clk+7 +0, wr +15 +0 rd:+6 +0 140856250: sio_revents: revents = 0x1, took 4051ns 140888238: sio_revents: revents = 0x0, took 1187ns 140905838: sio_revents: revents = 0x0, took 1257ns 00160902165: clk+8 +0, wr +16 +0 rd:+7 +0 160900908: sio_revents: revents = 0x1, took 3353ns 160931219
Re: Audio probles like, slow response in applications that use audio
On Fri, Mar 06, 2015 at 09:06:00AM +0100, Alexandre Ratchov wrote: Also please remeber that the audio is synchronized, the lag is when I want to advance the video. I still don't 100% understand whether you observe an audio subsystem bug (500ms latency), or you just dislike the default latency. This can't be a feature (right?), since I already use all these apps in this same computer under linux, and they ran very fast. To remeber: The behaviour that mplayer and cmus, are having, is operate with a delay. Any change in the audio play, like advance in the audio/video, or stop playing it, takes a time to happen. For example when I am in these apps and I click pause buttom, it takes a time like 1~2 seconds to respond. And If I click more than one time, it lags even more. If you don't like the 200-400ms latency (too conservative imo), you could lower sndiod buffer size, possibly patch mplayer, cmus or whatever to use smaller buffers as well, post diffs on ports@ and if this hurts no MP kernel users we'll change the defaults. This would improve everybody's setup. I already changed the buffer, and it didn't solved, as you can see here: http://marc.info/?l=openbsd-miscm=142368103115408w=2 This page have some usefull informations. About change the application buffers, never tried, but if these apps worked on Linux, it should work here right, or maybe the OBSD version have some modification. Let me know if you need help for this. Browsers are a different story. They use a huge amount of code with complex interaction that makes simple things complicated to debug. I'd suggest to first make work mplayer, cmus friends. I totally agree, lets focus on simples tools first. -- Regards Henrique Lengler
Re: Audio probles like, slow response in applications that use audio
On Thu, Mar 05, 2015 at 03:59:37PM +0100, Dmitrij D. Czarkoff wrote: Hi, Dimitrij, I am using some software from your port (ratox). If the performance issue depends on video resolution, most likely you experience problems with hardware graphics acceleration. To me looks like the audio is causing lag on video, since, the problem happens with cmus too. Do other GStreamer-based programs play the same videos fine? What about non-Gstreamer software, eg. ffplay from ffmpeg? As I said, ffplay is the only one I found that works well, when using it, I see no lag, even with HD videos. On Thu, Mar 05, 2015 at 01:45:57PM +0100, Alexandre Ratchov wrote: Let's first fix system-related audio problems (as programs depend on it). Once we're sure audio works well, then we can try to debug browsers which are known to not work well yet in all cases. mplayer is known to work; it has a small lag (iirc, less than 500ms, depends on the setup) which is somewhat acceptable. Could you confirm at least this works on -current as expected? No, still the same thing. mplayer, cmus and html5 video in any browser (firefox, chromium, webkitbased), are with lag in my system. Also please remeber that the audio is synchronized, the lag is when I want to advance the video. -- Regards Henrique Lengler
Re: Audio probles like, slow response in applications that use audio
Hi, Updating the situation, I already used -stable, and I am using now -current, and still the problem. I tried some browsers like (firefox, midori and chromium), and they get really slow when I am watching a html5 video, and it freezes all the time if the video is in HD. Here is almost all the problem information:http://marc.info/?l=openbsd-miscm=142385651303855w=2 -- Regards Henrique Lengler
Slow (Num/Caps/Scroll)Lock response under X.
Hi, When I am in X, the system takes a lot of time to respond the press of (Num/Caps/Scroll)Lock. Out of X it works instantly. I already used Xenocara from -release, -stable, and I am now using -current. I takes time also to change the light in the keyboard. In the time between a (Num/Caps/Scroll)Lock, if I type the words don't appear in the screen, only after the light change. The dmesg and the Xorg.0.log are attached -- Regards Henrique Lengler OpenBSD 5.7-beta (GENERIC) #0: Sat Feb 28 13:15:26 BRT 2015 he...@henrique-pc.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC real mem = 8439386112 (8048MB) avail mem = 8210849792 (7830MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xec1f0 (82 entries) bios0: vendor American Megatrends Inc. version 1401 date 07/29/2014 bios0: ASUS All Series acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT LPIT SSDT SSDT MCFG HPET SSDT SSDT BGRT acpi0: wakeup devices UAR1(S4) PS2K(S4) PS2M(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) PXSX(S4) RP07(S4) PXSX(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) Core(TM) i7-4770K CPU @ 3.50GHz, 3498.50 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,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID 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 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 8 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 2 (RP01) acpiprt2 at acpi0: bus 3 (RP03) acpiprt3 at acpi0: bus 4 (RP04) acpiprt4 at acpi0: bus 5 (PXSX) acpiprt5 at acpi0: bus 1 (PEG0) acpiprt6 at acpi0: bus -1 (PEG1) acpiprt7 at acpi0: bus -1 (PEG2) acpiec0 at acpi0: not present acpicpu0 at acpi0: C1, PSS acpipwrres0 at acpi0: FN00, resource for FAN0 acpipwrres1 at acpi0: FN01, resource for FAN1 acpipwrres2 at acpi0: FN02, resource for FAN2 acpipwrres3 at acpi0: FN03, resource for FAN3 acpipwrres4 at acpi0: FN04, resource for FAN4 acpitz0 at acpi0: critical temperature is 105 degC acpitz1 at acpi0: critical temperature is 105 degC acpibat0 at acpi0: BAT0 not present acpibat1 at acpi0: BAT1 not present acpibat2 at acpi0: BAT2 not present acpibtn0 at acpi0: PWRB acpibtn1 at acpi0: LID0 acpivideo0 at acpi0: GFX0 acpivout0 at acpivideo0: DD1F cpu0: Enhanced SpeedStep 3498 MHz: speeds: 3501, 3500, 3300, 3100, 2900, 2700, 2500, 2300, 2100, 2000, 1800, 1600, 1400, 1200, 1000, 800 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 Intel Core 4G Host rev 0x06 ppb0 at pci0 dev 1 function 0 Intel Core 4G PCIE rev 0x06: msi pci1 at ppb0 bus 1 vga1 at pci0 dev 2 function 0 Intel HD Graphics 4600 rev 0x06 intagp at vga1 not configured inteldrm0 at vga1 drm0 at inteldrm0 error: [drm:pid0:i915_write32] *ERROR* Unknown unclaimed register before writing to 10 inteldrm0: 1920x1080 wsdisplay0 at vga1 mux 1: console (std, vt100 emulation) wsdisplay0: screen 1-5 added (std, vt100 emulation) azalia0 at pci0 dev 3 function 0 Intel Core 4G HD Audio rev 0x06: msi azalia0: No codecs found xhci0 at pci0 dev 20 function 0 Intel 8 Series xHCI rev 0x05: msi usb0 at xhci0: USB revision 3.0 uhub0 at usb0 Intel xHCI root hub rev 3.00/1.00 addr 1 Intel 8 Series MEI rev 0x04 at pci0 dev 22 function 0 not configured ehci0 at pci0 dev 26 function 0 Intel 8 Series USB rev 0x05: apic 8 int 20 usb1 at ehci0: USB revision 2.0 uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1 azalia1 at pci0 dev 27 function 0 Intel 8 Series HD Audio rev 0x05: msi azalia1: codecs: Realtek/0x0887 audio0 at azalia1 ppb1 at pci0 dev 28 function 0 Intel 8 Series PCIE rev 0xd5: msi pci2 at ppb1 bus 2 ppb2 at pci0 dev 28 function 2 Intel 8 Series PCIE rev 0xd5: msi pci3 at ppb2 bus 3 re0 at pci3 dev 0 function 0 Realtek 8168 rev 0x11: RTL8168G/8111G (0x4c00), msi, address bc:ee:7b:e0:59:17 rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0 ppb3 at pci0 dev 28 function 3 Intel 82801BA Hub-to-PCI rev 0xd5: msi pci4 at ppb3 bus 4 ppb4 at pci4 dev 0 function 0 ASMedia ASM1083/1085 PCIE-PCI rev 0x03 pci5 at ppb4 bus 5 ehci1 at pci0 dev 29 function 0 Intel 8 Series USB rev 0x05: apic 8 int 23 usb2 at ehci1: USB revision 2.0 uhub2 at usb2 Intel EHCI root hub rev 2.00/1.00
Re: athn at usb fixes
On Sun, Mar 01, 2015 at 11:34:54AM -0430, Naim, Halim. wrote: Thanks, I have applied and recompiled. I can attach/detach. ifconfig down up, and sh /etc/netstart athn0, without any problems now. I will use it through the day to see if It goes down by itself as it use to. I will test this. -- Regards Henrique Lengler
Re: Where is etc57.tgz? in snapshots/amd64/?
On Fri, Feb 27, 2015 at 12:52:00PM -0800, Scott Vanderbilt wrote: On 2/27/2015 12:41 PM, Henrique Lengler wrote: I wanna set a -current openbsd installation. The FAQ [1] for 5.6 say I need etc56.tgz, so my question is do I need a etc57.tgz to install a snapshot? Because I can't find this file in the servers. [1] http://www.openbsd.org/faq/faq4.html#FilesNeeded You're looking at the wrong FAQ (OpenBSD 5.6 Installation Guide). Since you're upgrading to 5.7, you want http://www.openbsd.org/faq/current.html Already figured out, system installed. -- Regards Henrique Lengler
Re: usb ehci errors in 5.6-stable
On Fri, Feb 27, 2015 at 05:25:49PM +0100, Stefan Sperling wrote: On Fri, Feb 27, 2015 at 11:42:32AM -0430, Halim Srama wrote: With the previous -current athn0 used to trigger the ehci_idone. It's a TP-LINK TL-WN722N. Thanks, those are easy to find and cheap. I'll pick one up ASAP. As I said, I have this problem, and I use the same card. -- Regards Henrique Lengler
Where is etc57.tgz? in snapshots/amd64/?
Hi, I wanna set a -current openbsd installation. The FAQ [1] for 5.6 say I need etc56.tgz, so my question is do I need a etc57.tgz to install a snapshot? Because I can't find this file in the servers. [1] http://www.openbsd.org/faq/faq4.html#FilesNeeded -- Regards Henrique Lengler
Cairo, bug fix and stability increase included on -stable
Hi, In august of 2014, I reported a bug, that makes cairo unstable and gives some segafaults. There was some other people with the same problem. They fixed it, but the fix was only introduced in 1.13, so the openbsd cairo version, have the problem. I would like to know if can this patches be applied on -stable branch? The bug report and the discussion is here: https://bugs.freedesktop.org/show_bug.cgi?id=81699 The two commits that solve the problem is here: http://cgit.freedesktop.org/cairo/commit/?id=13a09526d2120c244471e03b6ae979016ef88e83 http://cgit.freedesktop.org/cairo/commit/?id=a5f51588afd9d5629b03297eb29ff46350b6ba50 -- Regards Henrique Lengler
Re: usb ehci errors in 5.6-stable
On Tue, Feb 24, 2015 at 12:23:54PM +0100, Stefan Sperling wrote: On Tue, Feb 24, 2015 at 02:30:06PM +0400, Evgeny Zhavoronkov wrote: Ok. So I tried -current and situation is the same. I can reproduce the total crash (laptop reboot) by attach/detach athn usb wifi or playing with usb devs somehow. Hi, I have an athn0 card and I have this problem. If my internet drops, sometimes I can't reset the stuff, in dmesg, I stay receiving a lot of ehci errors. -- Regards Henrique Lengler
[solved] Re: Failing to build -stable Xenocara
On Mon, Feb 23, 2015 at 07:40:00AM -0500, Nick Holland wrote: On 02/22/15 16:24, Henrique Lengler wrote: On Sun, Feb 22, 2015 at 02:57:18PM -0600, Edgar Pettijohn wrote: Are you following this? http://www.openbsd.org/faq/faq5.html#Xbld ... Yes I am, and this is my second attempt. ... Start at the very very very top of the page http://www.openbsd.org/faq/faq5.html You can skip the Table of Contents, but just about every word from that point down is critical and must be respected and followed. Don't say I followed instructions, you won't find your problem when you start by denying what the problem most likely is. Start with I'm not sure what I did wrong, retrace your steps from the instructions, and you will probably find the problem. I just reintalled the whole system, and now everything worked. I think it was a problem with the old system, because even cvs looks like is working beter in this new system. So I don't know what was the problem, but I know that wasn't with openbsd. Thank you very much for helping. -- Regards Henrique Lengler
Re: Alternative way to get sources, CVS slow
On Sun, Feb 22, 2015 at 05:18:24PM +, Stuart Henderson wrote: Interesting.. I stopped running local cvsync to my server at home a while ago, as 'cvs up' from my mirror (over adsl) was faster, not even taking the extra cvsync time into account ;) So I successfully fetched the code, now I will compile, and see if I get any error, as I get before. Because last time I checkout the code, things like xenocara failed to build. I post here when I end. -- Regards Henrique Lengler
Re: Alternative way to get sources, CVS slow
On Sun, Feb 22, 2015 at 04:40:39PM -0300, Henrique Lengler wrote: On Sun, Feb 22, 2015 at 05:18:24PM +, Stuart Henderson wrote: Interesting.. I stopped running local cvsync to my server at home a while ago, as 'cvs up' from my mirror (over adsl) was faster, not even taking the extra cvsync time into account ;) So I successfully fetched the code, now I will compile, and see if I get any error, as I get before. Because last time I checkout the code, things like xenocara failed to build. Holy #@$$!! I got a compiler error, the same I posted here: http://marc.info/?l=openbsd-miscm=142444902627315w=2 I really need help, I'm following he FAQ, and I don't know why it don't work! -- Regards Henrique Lengler
Re: Alternative way to get sources, CVS slow
The part of CVS end, lets continue build problems here: Failing to build -stable Xenocara -- Regards Henrique Lengler
Re: Failing to build -stable Xenocara
On Sun, Feb 22, 2015 at 02:57:18PM -0600, Edgar Pettijohn wrote: Are you following this? http://www.openbsd.org/faq/faq5.html#Xbld I changed the subject name to follow last thread. Yes I am, and this is my second attempt. I searched on the internet and I found it is a problem with the freetype library files. So I decided to install freetype with pkg_add, now looks like it don't fail in this part. but I received another error. extensions.o(.text+0x678): In function `AddExtensionAlias': : warning: strcpy() is almost always misused, please use strlcpy() /usr/X11R6/lib/libXfont.so.12.0: warning: rand() isn't random; consider using arc4random() osglue.o(.text+0x212): In function `CloneMyself': : warning: strcat() is almost always misused, please use strlcat() connection.o(.text+0xaff): In function `CreateSockets': : warning: sprintf() is often misused, please use snprintf() config.o(.text+0xdce): In function `config_set_snf_format': : undefined reference to `SnfSetFormat' collect2: ld returned 1 exit status *** Error 1 in app/xfs/obj (Makefile:502 'xfs') *** Error 1 in app/xfs/obj (Makefile:948 'all-recursive') *** Error 1 in app/xfs/obj (Makefile:407 'all') *** Error 1 in app/xfs (/usr/X11R6/share/mk/bsd.xorg.mk:145 'all') *** Error 1 in app/xfs (/usr/X11R6/share/mk/bsd.xorg.mk:211 'build') *** Error 1 in app (bsd.subdir.mk:48 'build') *** Error 1 in . (bsd.subdir.mk:48 'realbuild') *** Error 1 in /usr/xenocara (Makefile:36 'build') -- Regards Henrique Lengler
Re: Failing to build -stable Xenocara
On Sun, Feb 22, 2015 at 06:24:51PM -0300, Henrique Lengler wrote: On Sun, Feb 22, 2015 at 02:57:18PM -0600, Edgar Pettijohn wrote: Are you following this? http://www.openbsd.org/faq/faq5.html#Xbld I changed the subject name to follow last thread. Yes I am, and this is my second attempt. I searched on the internet and I found it is a problem with the freetype library files. So I decided to install freetype with pkg_add, now looks like it don't fail in this part. but I received another error. extensions.o(.text+0x678): In function `AddExtensionAlias': : warning: strcpy() is almost always misused, please use strlcpy() /usr/X11R6/lib/libXfont.so.12.0: warning: rand() isn't random; consider using arc4random() osglue.o(.text+0x212): In function `CloneMyself': : warning: strcat() is almost always misused, please use strlcat() connection.o(.text+0xaff): In function `CreateSockets': : warning: sprintf() is often misused, please use snprintf() config.o(.text+0xdce): In function `config_set_snf_format': : undefined reference to `SnfSetFormat' collect2: ld returned 1 exit status *** Error 1 in app/xfs/obj (Makefile:502 'xfs') *** Error 1 in app/xfs/obj (Makefile:948 'all-recursive') *** Error 1 in app/xfs/obj (Makefile:407 'all') *** Error 1 in app/xfs (/usr/X11R6/share/mk/bsd.xorg.mk:145 'all') *** Error 1 in app/xfs (/usr/X11R6/share/mk/bsd.xorg.mk:211 'build') *** Error 1 in app (bsd.subdir.mk:48 'build') *** Error 1 in . (bsd.subdir.mk:48 'realbuild') *** Error 1 in /usr/xenocara (Makefile:36 'build') Sorry this the same message. I'm thinking about thrust that everything should work, and reintall the whole system. -- Regards Henrique Lengler
Re: Alternative way to get sources, CVS slow
On Sat, Feb 21, 2015 at 03:51:37PM -0600, James Hartley wrote: On Saturday, February 21, 2015, Henrique Lengler henriquel...@opmbx.org wrote: once I get the tarballs and unpack them, to update the code, I should run cvs checkout or updtate? Update. Reading the cvs manpage will help other questions as well. So I ran this command: cvs -d anon...@anoncvs.ca.openbsd.org:/cvs -q up -rOPENBSD_5_6 -Pd And it is stoped, for more than a hour. This is what top show about the process: PID USERNAME PRI NICE SIZE RES STATE WAIT TIMECPU COMMAND 19822 root -50 2416K 3708K idle pipewr0:01 0.00% cvs -- Regards Henrique Lengler
Alternative way to get sources, CVS slow
Hi, I'm trying to keep and maintain a copy of -stable source code in my system. The problem is that I can't work with CVS. It is too slow to download. My internet can download things at 500kb/s - 1MB/s, but when I am doing a checkout, the download stay too slow, I already tried with a bunch of mirrors, and it is almost the same thing. I don't know if the problem is that all CVS mirrors are slow. I let my computer all the last day doing a checkout for src ports and xenocara. After 10 hours it was in ports yet. Also, the worst problem is that my internet connections sometimes drop, and so in an attempt to continue the interrupted checkout I run the command again, the problem is that it takes about a half hour to start to continue getting the code, this when it works, because sometimes after all this time I get: Write failed: Broken pipe Also sometimes looks like it is getting everything again, because it says cvs server: Updating foo to every file already in the folder. I'm looking to a way to get this sources, there is a long time I'm trying and it ever happens some problem like this, and I can't continue to get the sources, so I need to delete everything a start again. CVS looks too complicated and confuse. I would like to be able to get from http, git, ftp or anything sipler and faster. Is there any alternative? -- Regards Henrique Lengler
Re: Alternative way to get sources, CVS slow
On Sat, Feb 21, 2015 at 07:23:16PM +0100, Alexander Hall wrote: I believe the source tarballs avaliable on the CDs (and mirrors) come with CVS directories, so they might be a good start. The FAQ might shed some light on this. /Alexander Just another question, once I get the tarballs and unpack them, to update the code, I should run cvs checkout or updtate? -- Regards Henrique Lengler
Re: Alternative way to get sources, CVS slow
On Sat, Feb 21, 2015 at 07:23:16PM +0100, Alexander Hall wrote: I believe the source tarballs avaliable on the CDs (and mirrors) come with CVS directories, so they might be a good start. The FAQ might shed some light on this. /Alexander This looks like the best way, so I will do this. Thanks for helping. -- Regards Henrique Lengler
Failing to build -stable Xenocara
Hi, I'm moving my system from -release to -stable, I'm following the instructions here: www.openbsd.org/stable.html. I already built the kernel, rebooted amd built the userland. Now that its time to build xenocara, the process fails. This is the second attempt to build, when it failed the first time I deleted and checkout all the source again. I did no change in the source, I'm building the default settings in, kernel, userland and xenocara. This is the last lines that give me the errors: extensions.o(.text+0x678): In function `AddExtensionAlias': : warning: strcpy() is almost always misused, please use strlcpy() /usr/X11R6/lib/libXfont.so.12.0: warning: rand() isn't random; consider using arc4random() osglue.o(.text+0x212): In function `CloneMyself': : warning: strcat() is almost always misused, please use strlcat() connection.o(.text+0xaff): In function `CreateSockets': : warning: sprintf() is often misused, please use snprintf() config.o(.text+0xdce): In function `config_set_snf_format': : undefined reference to `SnfSetFormat' collect2: ld returned 1 exit status *** Error 1 in app/xfs/obj (Makefile:502 'xfs') *** Error 1 in app/xfs/obj (Makefile:948 'all-recursive') *** Error 1 in app/xfs/obj (Makefile:407 'all') *** Error 1 in app/xfs (/usr/X11R6/share/mk/bsd.xorg.mk:145 'all') *** Error 1 in app/xfs (/usr/X11R6/share/mk/bsd.xorg.mk:211 'build') *** Error 1 in app (bsd.subdir.mk:48 'build') *** Error 1 in . (bsd.subdir.mk:48 'realbuild') *** Error 1 in /usr/xenocara (Makefile:36 'build') Could someone please help me? -- Regards Henrique Lengler
Re: Audio probles like, slow response in applications that use audio and a little noise in the background
On Fri, Feb 13, 2015 at 09:59:47AM +0100, Alexandre Ratchov wrote: One second lag is cleary a bug. Could you get this file: http://caoua.org/tmp/beep.wav and test the lag with this command: aucat -i beep.wav The lag is supposed to be of 0.2 seconds. To debug this, you could kill sndiod, run tmux and start: sudo sndiod -dd your_options_if_any Then, when you start a program it displays information about what programs do, example: mplayer0: 48000Hz, s32le, play 0:1, 13 blocks of 960 frames mplayer0: attached at -7680, delta = 0 which allows to calculate the expected lag: 13 * 960 / 48000 = 0.26 seconds of lag When I do aucat -i beep.wav, this is what I receive: # sndiod -dd snd0.default: rec=0:1 play=0:1 vol=23170 dup snd0: 48000Hz, s16le, play 0:1, rec 0:1, 9 blocks of 960 frames aucat0: 48000Hz, s16le, play 0:0, 8 blocks of 960 frames snd0: device started aucat0: attached at -8640, delta = 0 snd0: device stopped 8 * 960 / 48000 = 0.16, this mean it have no lag, strange. Do you see any warning messages? No. Whenever the device starts, sndiod displays: snd0: device started when you observe the lag, does above message appear delayed as well? When I start mplayer, cmus, aucat, the first message appear instatly. But the others that I received during execution come delayed. For example in mplayer the audio looks synchronize with the video, the delay comes when I click, for example, in the arrow to jump on the audio/music. **This is the mplayer output when I start it: snd0.default: rec=0:1 play=0:1 vol=23170 dup snd0: 48000Hz, s16le, play 0:1, rec 0:1, 9 blocks of 960 frames mplayer0: 44100Hz, s32le, play 0:1, 13 blocks of 882 frames snd0: device started mplayer0: attached at -7938, delta = 0 ** And it stay playing, when I click the arrow key, I receive this two messages with the delay. mplayer0: 44100Hz, s32le, play 0:1, 13 blocks of 882 frames mplayer0: attached at -7938, delta = 0 ** So I press quit, mplay quit in the same time, but the audio still playing for a while. And I receive this one with the same delay snd0: device stopped In ffplay, that don't lag, this is the messages I get: # sndiod -dd snd0.default: rec=0:1 play=0:1 vol=23170 dup snd0: 48000Hz, s16le, play 0:1, rec 0:1, 9 blocks of 960 frames snd0: 48000Hz, s16le, play 0:1, rec 0:1, 9 blocks of 960 frames ffplay0: 44100Hz, s16le, play 0:1, 2 blocks of 882 frames snd0: device started ffplay0: attached at -7938, delta = 0 snd0: device stopped In ffplay, I don't receive any message if I advance the video, and the message of device stopped come instatly. First thing I can see is that: 2 * 882 / 44100 = 0.04 - the value is lower But looks this isn't the problem, the audio in mplayer is synchronized with the video, the lag only happens when I advance or quit the app. If you let: aucat -i /dev/zero running, do cmus and mplayer keep lagging? Yes, everything continue behaving as before. -- Regards Henrique Lengler
Re: Audio probles like, slow response in applications that use audio and a little noise in the background
Hi, Just an update. I continue with the lag. So I decided to try other players, and I discovered that ffplay from ffmpeg don't lag, this is the only one I found that works, with both audio and video. But the problem isn't solved yet since I like cmus and mplayer and I wanna use them. This is really strange, why this could happen? Audio lag in html5, mplayer and cmus, but workin on ffplay? I need help On Wed, Feb 11, 2015 at 04:54:54PM -0200, Henrique Lengler wrote: First thanks for helping! On Wed, Feb 11, 2015 at 09:29:04AM +0100, Alexandre Ratchov wrote: the noise might be caused by a noisy microphone amp (even if there's no microphone plugged). By mutting the microphoe, the noise may disappear. Could you post the output of mixerctl -a ? Thanks, first problem solved, I did $ mixerctl inputs.mic=0,0 and the noise stoped. /* mixerctl -a */ inputs.dac-0:1=108,108 inputs.dac-2:3=126,126 inputs.dac-4:5=126,126 inputs.dac-6:7=108,108 record.adc-0:1_mute=off record.adc-0:1=125,125 record.adc-2:3_mute=off record.adc-2:3=125,125 inputs.mix_source=mic,mic2,line-in,hp,line inputs.mix_mic=120,120 inputs.mix_mic2=120,120 inputs.mix_line-in=120,120 inputs.mix_hp=120,120 inputs.mix_line=120,120 inputs.mix2_source=dac-0:1,mix inputs.mix3_source=dac-2:3,mix inputs.mix4_source=dac-4:5,mix inputs.mix5_source=dac-6:7,mix outputs.SPDIF_source=dig-dac-0:1 outputs.line_source=mix2 outputs.line_mute=off outputs.line_dir=output outputs.line_boost=off outputs.line_eapd=on outputs.mic_source=mix3 outputs.mic_mute=on inputs.mic=0,0 outputs.mic_dir=input-vr80 outputs.mic2_source=mix8 outputs.mic2_mute=off inputs.mic2=85,85 outputs.mic2_dir=input-vr80 outputs.mic2_boost=off outputs.line-in_source=mix4 outputs.line-in_mute=off inputs.line-in=85,85 outputs.line-in_dir=input outputs.hp_source=mix5 outputs.hp_mute=off inputs.hp=85,85 outputs.hp_dir=output outputs.hp_boost=off outputs.hp_eapd=on record.adc-2:3_source=mic,mic2,line-in,hp,line,mix record.adc-0:1_source=mic,mic2,line-in,hp,line,mix inputs.dac-8:9=126,126 inputs.mix8_source=dac-8:9,mix outputs.line_sense=plugged outputs.mic_sense=unplugged outputs.mic2_sense=unplugged outputs.line-in_sense=unplugged outputs.hp_sense=unplugged outputs.master=110,110 outputs.master.mute=off outputs.master.slaves=dac-0:1,dac-6:7,line,hp record.volume=125,125 record.volume.mute=off record.volume.slaves=adc-0:1,adc-2:3 outputs.mode=analog I installed cmus, copied some musics to my disk and started to listen. It plays normally, but when I click the arrows to advance in the music, I noticed it have a delay, and it lags if I click like 3 times to advance. And if click to close the application, the application close in the same time, but the audio stay playing for a while. The next thing is mplayer, It lag to advance the video (as cmus), but it don't stay playing when I click close. How long is the lag? It's about 1.5 - 2 seconds. This really sucks I need to advance the music and click more than once. By default the buffer size is large which causes around 0.2 second of extra lag but makes audio stable (this is to allow audio to kinda work on busy or on MP systems). You could try to use smaller buffers, for instance add: sndiod_flags=-z 480 to /etc/rc.conf.local and restart sndiod with: /etc/rc.d/sndiod restart This didn't solved, maybe the audio is a little faster, but continue more than 1 sec of delay. -- Regards Henrique Lengler -- Regards Henrique Lengler
Re: Audio probles like, slow response in applications that use audio and a little noise in the background
First thanks for helping! On Wed, Feb 11, 2015 at 09:29:04AM +0100, Alexandre Ratchov wrote: the noise might be caused by a noisy microphone amp (even if there's no microphone plugged). By mutting the microphoe, the noise may disappear. Could you post the output of mixerctl -a ? Thanks, first problem solved, I did $ mixerctl inputs.mic=0,0 and the noise stoped. /* mixerctl -a */ inputs.dac-0:1=108,108 inputs.dac-2:3=126,126 inputs.dac-4:5=126,126 inputs.dac-6:7=108,108 record.adc-0:1_mute=off record.adc-0:1=125,125 record.adc-2:3_mute=off record.adc-2:3=125,125 inputs.mix_source=mic,mic2,line-in,hp,line inputs.mix_mic=120,120 inputs.mix_mic2=120,120 inputs.mix_line-in=120,120 inputs.mix_hp=120,120 inputs.mix_line=120,120 inputs.mix2_source=dac-0:1,mix inputs.mix3_source=dac-2:3,mix inputs.mix4_source=dac-4:5,mix inputs.mix5_source=dac-6:7,mix outputs.SPDIF_source=dig-dac-0:1 outputs.line_source=mix2 outputs.line_mute=off outputs.line_dir=output outputs.line_boost=off outputs.line_eapd=on outputs.mic_source=mix3 outputs.mic_mute=on inputs.mic=0,0 outputs.mic_dir=input-vr80 outputs.mic2_source=mix8 outputs.mic2_mute=off inputs.mic2=85,85 outputs.mic2_dir=input-vr80 outputs.mic2_boost=off outputs.line-in_source=mix4 outputs.line-in_mute=off inputs.line-in=85,85 outputs.line-in_dir=input outputs.hp_source=mix5 outputs.hp_mute=off inputs.hp=85,85 outputs.hp_dir=output outputs.hp_boost=off outputs.hp_eapd=on record.adc-2:3_source=mic,mic2,line-in,hp,line,mix record.adc-0:1_source=mic,mic2,line-in,hp,line,mix inputs.dac-8:9=126,126 inputs.mix8_source=dac-8:9,mix outputs.line_sense=plugged outputs.mic_sense=unplugged outputs.mic2_sense=unplugged outputs.line-in_sense=unplugged outputs.hp_sense=unplugged outputs.master=110,110 outputs.master.mute=off outputs.master.slaves=dac-0:1,dac-6:7,line,hp record.volume=125,125 record.volume.mute=off record.volume.slaves=adc-0:1,adc-2:3 outputs.mode=analog I installed cmus, copied some musics to my disk and started to listen. It plays normally, but when I click the arrows to advance in the music, I noticed it have a delay, and it lags if I click like 3 times to advance. And if click to close the application, the application close in the same time, but the audio stay playing for a while. The next thing is mplayer, It lag to advance the video (as cmus), but it don't stay playing when I click close. How long is the lag? It's about 1.5 - 2 seconds. This really sucks I need to advance the music and click more than once. By default the buffer size is large which causes around 0.2 second of extra lag but makes audio stable (this is to allow audio to kinda work on busy or on MP systems). You could try to use smaller buffers, for instance add: sndiod_flags=-z 480 to /etc/rc.conf.local and restart sndiod with: /etc/rc.d/sndiod restart This didn't solved, maybe the audio is a little faster, but continue more than 1 sec of delay. -- Regards Henrique Lengler
Audio probles like, slow response in applications that use audio and a little noise in the background
Hi, I'm new in OpenBSD (I'm loving it), I came from Linux. I installed the last (5.6) version, and I started to use, without doing any change in audio settings. The first thing I noticed while computing at night, is a little noise in the background, it is very low, but it exist and bothers me, its more like a television sound when it don't have signali, but very low. I checked if the problem wasn't the earphone, but It worked fine plugged in a windows notebook, and I was using it in Linux in this computer around 2 days ago, its also not eletric problem, because it don't sounds like one, my computer never had this and it don't stop if I put my hands on it. I installed cmus, copied some musics to my disk and started to listen. It plays normally, but when I click the arrows to advance in the music, I noticed it have a delay, and it lags if I click like 3 times to advance. And if click to close the application, the application close in the same time, but the audio stay playing for a while. The next thing is mplayer, It lag to advance the video (as cmus), but it don't stay playing when I click close. The last similar problem happens when I am playing a html5 video and I pause or it stops to load, the audio gets desynchronized. So I need to click in a part of the timeline to get it working again. All these errors happens on the console too. My keyboard normal keys have no lag in Xorg (I have lag problems in Caps/Num/Scroll Lock keys under X, but this is for another post). ** Now the hardware/software info: ** My motherboard is a ASUS Z87-K, the official site says it have an Realtek ALC887 8-Channel High Definition Audio CODEC *2 audio device. In Linux, it uses the snd-hda-intel module. * The pcidump output: Domain /dev/pci0: 0:0:0: Intel Core 4G Host 0:1:0: Intel Core 4G PCIE 0:2:0: Intel HD Graphics 4600 0:3:0: Intel Core 4G HD Audio 0:20:0: Intel 8 Series xHCI 0:22:0: Intel 8 Series MEI 0:26:0: Intel 8 Series USB 0:27:0: Intel 8 Series HD Audio 0:28:0: Intel 8 Series PCIE 0:28:2: Intel 8 Series PCIE 0:28:3: Intel 82801BA Hub-to-PCI 0:29:0: Intel 8 Series USB 0:31:0: Intel Z87 LPC 0:31:2: Intel 8 Series AHCI 0:31:3: Intel 8 Series SMBus 3:0:0: Realtek 8168 4:0:0: ASMedia ASM1083/1085 PCIE-PCI * The dmesg output will be attached, since I can't copy and paste it here, sorry. and it have all the info of /var/run/dmesg.boot I think its all, I asked to people and I can't find if this audio device is supported or not, If you need more information please ask. Thank you for this wonderfull OS. -- Regards Henrique Lengler OpenBSD 5.6 (GENERIC.MP) #333: Fri Aug 8 00:20:21 MDT 2014 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8439386112 (8048MB) avail mem = 8205946880 (7825MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xec1f0 (82 entries) bios0: vendor American Megatrends Inc. version 1401 date 07/29/2014 bios0: ASUS All Series acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT LPIT SSDT SSDT MCFG HPET SSDT SSDT BGRT acpi0: wakeup devices UAR1(S4) PS2K(S4) PS2M(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) PXSX(S4) RP07(S4) PXSX(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) Core(TM) i7-4770K CPU @ 3.50GHz, 3498.48 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,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID 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, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3497.98 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,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 4 (application processor) cpu2: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3497.98 MHz 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,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE
[solved]Re: bind: Permission denied
On Wed, Dec 24, 2014 at 03:26:21AM +, Maurice McCarthy wrote: Have a look at the documentation installed with the port. $ pkg_info -L cmus will list all the files installed. There maybe something in /usr/local/share/doc/pkg-readmes Check the configuration files to see if you need to adjust anything. I solved doing a chown in all the home to my userz Regards, -- Henrique Lengler
Adding a new keymap
Hi, I would like to install a custom keymap on my system but I don`t know how since I cant find this information on the internet. I already used it on linux it is a kbd keymap. I get it here http://github.com/nandoflorestan/teclado-br Hom cat I add it to my system? Will I need to convert it to another type of file? Regards, -- Henrique Lengler
Re: Adding a new keymap
On Wed, Dec 24, 2014 at 05:25:46PM +, Maurice McCarthy wrote: man setxkbmap man kbd So why does wsconsctl exist? Would not be better if I use it? Regards, -- Henrique Lengler
Re: Adding a new keymap
On Wed, Dec 24, 2014 at 07:56:37PM +, Maurice McCarthy wrote: Yes, it is likely better. Don't know if it changes X though. I'm not great with OpenBSD but had to go through some of the tortures you are having yourself, so I'm doing my best to help as I can. Regards Moss and Merry Christmas! It is really torturing. I can't find anything on the internet about how can I add a keymap to wscons. OpenBSD really lacks in its documentation. Regards, -- Henrique Lengler
Re: Adding a new keymap
On Wed, Dec 24, 2014 at 08:10:51PM +, Maurice McCarthy wrote: Always try the man pages first and the online faq. You will find the documentation 1000x better than anywhere else! That said it is still a steep learning curve. :-) but worth it, so far as I'm concerned. I'm saying that I did this and I didn't find it. Could you point me any place I can find it, since you still saying it is documented? Regards, -- Henrique Lengler
Re: Adding a new keymap
On Wed, Dec 24, 2014 at 08:15:53PM +, Maurice McCarthy wrote: $ man wsconsctl.conf WSCONSCTL.CONF(5) File Formats Manual WSCONSCTL.CONF(5) NAME wsconsctl.conf ??? wsconsctl variables to set at system startup DESCRIPTION wsconsctl.conf contains a list of wsconsctl(8) variable assignments that is read at system startup by rc(8) during the boot sequence. The file is made up of wsconsctl(8) variable assignments (variable=value) with comments designated by a hash mark (???#???). FILES /etc/wsconsctl.conf EXAMPLES To load a Russian keyboard encoding, one would use the following line: keyboard.encoding=ru To set the screen burner timeout to 60 seconds, the following can be used: display.screen_off=6 SEE ALSO rc(8), wsconsctl(8) HISTORY A wsconsctl.conf file first appeared in OpenBSD 3.0. May 31, 2007 OpenBSD-current Tell me how this would help me to figure how to add a new keymap. Regards, -- Henrique Lengler
Re: Adding a new keymap
On Wed, Dec 24, 2014 at 08:21:31PM +, Maurice McCarthy wrote: Many keymaps can be set during the installation: I'm talking about add a new keymap. Not choose one that already exists. Looks like anyone know how the keymaps had been added to openbsd, they are just there. Regards, -- Henrique Lengler
Re: Adding a new keymap
On Wed, Dec 24, 2014 at 03:31:47PM -0500, Ted Unangst wrote: Add it to src/sys/dev/pckbc/wskbdmap_mfii.c and build a new kernel. WTF Where this src is located? -- Henrique Lengler
Re: Adding a new keymap
On Wed, Dec 24, 2014 at 11:11:20PM +0100, Dmitrij D. Czarkoff wrote: Henrique Lengler said: I would like to install a custom keymap on my system Are you talking about X11 or console keymap? The former is defined in /usr/X11R6/share/X11/xkb/symbols/, the latter ??? in /usr/src/sys/dev/pckbc/wskbdmap_mfii.c. -- Dmitrij D. Czarkoff Goodbye guys, returning to sabotage linux. Are you crazy I will compile a kernel only to have a custom keymap? Also a off topic things I don't liked about OpenBSD: 1 - Why the hell it came with three differents type of window system? 2 - The Automatic installer sucks 3 - Horrible console (without X) support It have also a good things: 1 - I liked the sound system, works very well 2 - It is more like Unix. Regards, -- Henrique Lengler
Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 04:06, Brent Cook wrote: There have been a couple of reports similar to this one that were fixed with a firmware update from the motherboard or system vendor. I would presume the firmware basically crashes if it sees a boot code written on the hard drive it does not expect, even if it follows the standards: http://marc.info/?t=13988430601r=1w=2 http://marc.info/?l=openbsd-miscw=2r=1s=Axiomtek+NA570q=b I worked on a new-ish laptop recently that would not boot from a CD or any non-Windows partition unless I first removed the hard drive, entered the EFI/Bios setup, set a password, then disabled EFI secure boot. Good, you're giving me hope. Good links, I will try this. Also found a very similar with a similar motherboard, but have no answer. Regards, -- Henrique Lengler
Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 04:27, Dmitrij D. Czarkoff wrote: Unlikely until you mention the model of your laptop and describe the problem in more detail. Ok, it is not a laptop. It have a ASUS Z87-k motherboard, 8GB CRUCIAL RAM, Intel Core i7 4770k processor. My HDD is a Seagate Barracuda 1TB. Regards -- Henrique Lengler
Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 10:33, pe...@bsdly.net wrote: Did you in fact complete the install at all, or did you just partition the disk and press reset before installing any sets? As I said, everything I can expect from a bad uncompleted install is the system trying to load the HDD and it fails. But what really happen is that if I tur on the computer with the HDD connected, all other hardware stop working. Even the keyboard lights stop blinking when clicking Caps/Num Lock. -- Henrique Lengler
[probably solved] Re: Openbsd broke my hard drive twice! Getting frustrated
I figured that my BIOS have a old firmware from 2013. So I decided to update it. At least this my motherboard did good, I easily updated the firmware by plugging a USB with the new firmware. Then It rebooted and yes, it worked as it should. Booted normally with the HDD sata connected. I cannot get satisfied yet, I will install a OS and see if it will still working. I'm in doubt about try openBSD again, I'm afraid everything could happen again. Also is there a explanation to this shitty behavior? My motherboard acted like having a short circuit, making everything stop working because a bad formatted HDD, this is a really unexpected behavior, which made me think the problem was openBSD. By now, thanks for helping. I expect don't need to post anything more here. Regards, -- Henrique Lengler
Re: [probably solved] Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 14:55, Henrique Lengler wrote: I figured that my BIOS have a old firmware from 2013. So I decided to update it. At least this my motherboard did good, I easily updated the firmware by plugging a USB with the new firmware. Then It rebooted and yes, it worked as it should. Booted normally with the HDD sata connected. I cannot get satisfied yet, I will install a OS and see if it will still working. I'm in doubt about try openBSD again, I'm afraid everything could happen again. Also is there a explanation to this shitty behavior? My motherboard acted like having a short circuit, making everything stop working because a bad formatted HDD, this is a really unexpected behavior, which made me think the problem was openBSD. By now, thanks for helping. I expect don't need to post anything more here. Regards, UPDATE: It also loaded OpenBSD from the harddrive, now I don't need to install it again. This evidence that I did install it right! Regards, -- Henrique Lengler
Getting the right image, to install via USB
Hi, I want to install openbsd on my computer via a USB, since I don't have a unused CD. I'm in doubt about what image should I download and how can I record it to a USB using windows. Could someone please help me? -- Henrique Lengler
Re: Getting the right image, to install via USB
On 2014-12-23 19:46, Maurice McCarthy wrote: Advice on using dd for windows https://susestudio.com/help/use/disk-image.html#the_hard_way Moss I tried three times and I got this message when boot the USB: Using drive 0, partition 3. ... ... ... and still repeating Regards, -- Henrique Lengler
[solved] Re: Getting the right image, to install via USB
On 2014-12-23 20:11, Henrique Lengler wrote: On 2014-12-23 19:46, Maurice McCarthy wrote: Advice on using dd for windows https://susestudio.com/help/use/disk-image.html#the_hard_way Moss I tried three times and I got this message when boot the USB: Using drive 0, partition 3. ... ... ... and still repeating Regards, Done with Win32 Disk Imager Regards, -- Henrique Lengler
bind: Permission denied
Hi, When I try to run cmus in a normal user, I get $ cmus cmus: bind: Permission denied I never heard about bind before, so I can't imagine a way to solve this. Can someone help me? Regards, -- Henrique Lengler
Openbsd broke my hard drive twice! Getting frustrated
Hi, I decided to install openbsd by the first time a month ago, How I was with no internet connection I needed to shutdown the computer in the part that I need to download the packages, because I hadn't it on the cd. I could not acess the command line so I clicked the reset button on the front panel. When I tried to turn on again, the system didn't boot. I discovered that it only worked if I remove the hard drive. Thinking that the problem was the harddrive I sent it to warranty to be repleaced. I took 10 long days (withou my computer) to arrive a new one. When it arrived, I tested and I saw that now it is working. I prepared a cable connection, and I started again the openbsd setup. It sucefully downloaded and installed everything, so I rebooted the system to boot my new fresh install. AND SHIT, everything happened as before, the system don't boot as before, I can't open the bios as before, and I got really mad. I don't know if I will be able to sent it to warranty again, but this isn't the right thing to do now that I discovered that the problem isn't with it, the problem is with Openbsd. Could someone please explain me why this happened? Can you think about a way to fix this without send it to warranty? Any other questions? send me a reply, I'm really in need of help -- Henrique Lengler
Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 00:12, OpenBSD lists wrote: # cd /usr/src/distrib/miniroot/ # grep -B3 'inconsistent state' install.sub At any prompt except password prompts you can escape to a shell by typing '!'. Default answers are shown in []'s and are selected by pressing RETURN. You can exist this program at any time by pressing Control-C, but this can leave your system in an inconsistent state. Did you not see this warning while installing? What about my second attempt, in which I did everything normally and the same problem happened? -- Henrique Lengler
Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 00:50, Edgar Pettijohn III wrote: Have you tried installing something other than OpenBSD since you ran into this issue? Since I ran into this issue I can't even access my bios with the HDD sata connected. -- Henrique Lengler
Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 00:53, Edgar Pettijohn III wrote: So if you stick in a disk with an iso from some other os it won't boot from the cd without you accessing bios? I didn't and I can't try this because I don't have any other HDD here. But it can boot my CD/DVD reader with a cd containing Linux, wich is connected via a SATA cable too. I tried to change HDD the cable and the port, and anything solved. -- Henrique Lengler
Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 01:02, Ted Unangst wrote: That can only be a problem with your BIOS. Update it? Get a better one? I don't know. But if your BIOS doesn't work with some drive attached, your BIOS is broken. How can you say this? The problem isn't my BIOS don't booting with a broke HDD. I have evidences it work if I put a working drive. My motherboard is very new and it every worked good in any type of system. -- Henrique Lengler
Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 01:08, mar...@martinbrandenburg.com wrote: Has anything ever been installed successfully on this machine? Perhaps the motherboard or power supply causes damage after extended use. -- Martin Yes, my motherboard and power supply have 1 year of use, it every worked, and still working good. The evidence is that after try to install OpenBSD by the second time, I did a test, I reboot my system three times, accessed bios and everything worked. -- Henrique Lengler
Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 01:11, Henrique Lengler wrote: Yes, my motherboard and power supply have 1 year of use, it every worked, and still working good. The evidence is that after try to install OpenBSD by the I mean before -- Henrique Lengler
Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 01:18, mar...@martinbrandenburg.com wrote: Does the disk that you claim OpenBSD damaged still work in a different computer? Will be difficult to me can do this, I don't have any other desktop in my house. I will see if I can do this later. I was being nice when I said exceedingly odd. It's more like impossible. You come here with an impossible problem and no information. You haven't even said what type of computer this is. I realize a dmesg is impossible when it won't boot (though you could unplug the offending disk and get a dmesg from the CD), but some information would be nice. Isn't the operating system responsible to recognize and use with a correct driver my HDD? Linux is like this, the kernel have the SATA driver wich handle the drivers. Regards, -- Henrique Lengler
Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 02:00, Jonathon Sisson wrote: Here's a silly question...is it an EFI system? I would think the installer wouldn't boot properly if so, but you may have to go into your BIOS and set it up for legacy boot? Yes, it's a EFI system. How this would help if it can't even recognize the disk. Just in case, I already used Linux with a totally BIOS setup and it worked. I don't know. I've never heard of an OS install causing physical damage to a machine (though a few FreeBSD installs I performed around the 6.X/7.X timeframe caused *me* to harm a computer =). I'm also surprised with this, but I'm almost sure that it happened. I think we should study this and find the real problem cause. Regards, -- Henrique Lengler
Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 03:01, Joel Rees wrote: By the way, how are you accessing the internet now? My mother's notebook via wireless connection. Or perhaps you forgot to write down the URL for a nearby mirror before you started, so you could tell the installer to get the stuff from a mirror. For example, http://ftp.jaist.ac.jp/pub/OpenBSD/ How this would help me if I had no internet connection? When I tried to turn on again, the system didn't boot. That's not too surprising. Although, I wonder, did you notice how far it got in the boot process before it stopped? This is the point had confusion. It stopped on the bios screen. It even began to load the disc, because it didn't recognize it. It didn't booted because my hard drive isn't more recognized. Not because the system isn't correct installed. If the only problem was the system installation I would be able to at least enter the BIOS. I discovered that it only worked if I remove the hard drive. I suppose you mean that it would boot the install CD? There could be boot device order issues. As I said before, my computer does nothing with the hard drive attached, Thinking that the problem was the harddrive I sent it to warranty to be repleaced. Definitely a drastic step. Definitely not a drastic step, since my test showed that it was the problem and it really was because it worked the first time I tried when it arrived new from warranty. I took 10 long days (withou my computer) to arrive a new one. When it arrived, I tested and I saw that now it is working. I prepared a cable connection, and I started again the openbsd setup. It sucefully downloaded and installed everything, so I rebooted the system to boot my new fresh install. I see from your later posts that you have installed Linux before. You should understand there is a difference between Linux and openbsd. Openbsd does not install a bootloader for you. Does a bad OpenBSD install would change how my BIOS detect my HDD, and make all the rest hardware stop working when it is plugged, exactly as it happen when you put a drive in short circuit? AND SHIT, everything happened as before, the system don't boot as before, I can't open the bios as before, How did you open the BIOS when you were able to open the BIOS? Pressing DEL or F2 on boot. Regards, -- Henrique Lengler
Re: Openbsd broke my hard drive twice! Getting frustrated
On 2014-12-23 02:55, Eric Furman wrote: No. This is done by the BIOS. After the computer boots the BIOS then hands over control to the OS. So this it the time the OS is able to do whatfuck it wants with my HDD, and so the OS have control over HDD. Right? And yes, that is a gross over simplification of what actually happens. There is no way that any OS can 'break' a hard drive. So why this happened when using OpenBSD? -- Henrique Lengler