Search results

  1. D

    want GPIO

    Do you want to use FreeBSD on your Pi or on your PC? On the Pi you may get away with FreeBSD 10 and the gpio bus system. I have not used it, but it supports 'device bcm_gpio' which sounds promising. Perhaps the i2c bus (iicbus) does work on the Pi, too. On my laptop I have used iicbus with the...
  2. D

    lcdproc

    This is simply because there is no such thing like /dev/ttyUSB0 on FreeBSD. Edit your LCDd.conf and look for the section SureElec and change the Device setting: [SureElec] Device=/dev/cuaU0
  3. D

    Failed to initialize GLX extension (compatible nvidia X driver not found.)

    If your Xorg log file says something else than this for the glx module: (II) LoadModule: "glx" (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so (II) Module glx: vendor="NVIDIA Corporation" compiled for 4.0.2, module version = 1.0.0 Module class: X.Org Server...
  4. D

    The state of alternative compilers (besides GCC 4.2) for ports

    Just today I tested clang with one of the ports I maintain. Although it threw a lot of warnings, it compiled fine. Some of the warnings revealed the use of deprecated or otherwise not portable gcc C extensions that need to be fixed upstream. Very promising after all.
  5. D

    Different configs parser tool or library

    You may have a look at Config::Model. It is a Perl module (a few text and graphical front-ends exist) which can read, validate and write some configuration files. However, it needs a validator specific for each config file is shall understand.
  6. D

    Supported APC UPS

    You should carefully check their datasheets, because the smaller SmartUPS models (SC420I and SC620I) provide stepped wave output only. Considering its size and weight, SmartUPS are similar to BackUPS but they are more expensive. I own a used SmartUPS 700 with new batteries added and it works fine.
  7. D

    How to find used swap?

    The kvm_getswapinfo system call will return the used swap space (in pages).
  8. D

    hostname domain name

    If you can use DHCP it should set up everything correctly. If you have to configure it manually ask your network admins for what to put in. Unless your company does not use DNS at all there will be a domain name which you should use, too.
  9. D

    Status of I2C (aka IIC) framework?

    Is the iicbus (I2C) framework still used in FreeBSD? The only general purpose interfaces I see are lpbb (parallel port, which is not available on new PCs) and pcf (for ISA cards?). There seem to be e.g. no USB<->I2C devices available. I would like to use something as i2c-tiny-usb but there...
  10. D

    Midnight commander does not run after upgrade to 8.2

    Follow-up to myself: I recompiled mc without 'slang' library (so it uses curses) and it now works.
  11. D

    Cannot connect to SMB server (recursive lock)

    Hi, since the upgrade from 7.3 to 8.2 I cannot connect to my Windows Vista machine as a client. When I try to mount -t smbfs //user@host/Temp /mnt I receive: mount_smbfs: unable to open connection: syserr = Operation timed out and the system console shows <kern.crit> kirika kernel...
  12. D

    Midnight commander does not run after upgrade to 8.2

    After upgrading my system from FreeBSD 7.3 to 8.2 (and recompiling all ports) Midnight Commander (mc) frequently does not start if I use 'wterm' or 'Eterm' as the X11 terminal. It does seem to work reliable if 'xterm' is used. Sometimes it runs as usual, but then (I believe every second time...
  13. D

    Available Network Interfaces?

    Reading network interface stats can be done using ifmib. An example how to use it in C can be found e.g. in the LCDproc client machine_FreeBSD.c (function machine_get_iface_stats() at the end of the file).
  14. D

    Help with pthread_create not returning

    That did the trick. After adding pthreads to LDADD for the main program it does now start up. The next steps are to find out how to get this into the autotools stuff and how to program the thread properly.
  15. D

    Help with pthread_create not returning

    Using a device which noone has access to will probably lead us nowhere. However, the xosd 'driver' seems to suffer from the same problem. Upon running LCDd with the xosd driver, I see the process shown in the 'umtxn' state in top. Running procstat -kk gives the following output: PID...
  16. D

    Help with pthread_create not returning

    Years ago the whole code used clone(2) which is Linux specific. Someone then changed it to use pthread. This is why it's written that strange. However, I found that other programs suffer from the same problem. For example the misc/xosd library does not initialize when used within one of our...
  17. D

    Help with pthread_create not returning

    What do you mean by this? Do I have to configure FreeBSD to allow use of pthreads? Currently I'm running it on a stock 7.3-RELEASE installation (without any sysctl or login profiles configured). The return code of the child thread doesn't matter. And according to pthread_create pthread_exit is...
  18. D

    Help with pthread_create not returning

    There is a lot of autotools magic involved. At the end this it what make runs: darwimy@kirika:drivers> make gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I/usr/local/include -I/usr/local/include -fPIC -Wall -g -O -Wno-unused-function -MT lis- lis.o -MD -MP -MF .deps/lis-lis.Tpo -c -o lis-lis.o...
  19. D

    Help with pthread_create not returning

    The 'driver' I am talking about is a userland shared library, not a kernel driver. So it should work. I suspect some problem with calling phtread_create from within a shared library, but I have no idea what might be the problem.
  20. D

    Help with pthread_create not returning

    Hi, in the LCDproc project we have a driver which uses pthread_create to spin off a new thread. For a reason I don't understand, that call does never returns neither success nor any error. Even threading code that does work well as a standalone program does not work when copied into the...
Back
Top