Some multimedia keys send many keycodes

2010-04-07 Thread David DEMELIER
Hi freebsd users,

I'm running 8.0-STABLE on my laptop, and I have many troubles with the
functions keys (brightness does not work) and some other keys like
fn-key + f3 (usually XF86WWW) sends the XF86WWW keycode AND sends also
the F3 code and that's a real problem since some applications use
F1,2,3,...,12 keys.

For exemple fn-key - f9 must sens XF86AudioMute, it does but also does
the F9 key, look :

FocusOut event, serial 31, synthetic NO, window 0x141,
mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 31, synthetic NO, window 0x141,
mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 31, synthetic NO, window 0x0,
keys:  22  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

KeyPress event, serial 31, synthetic NO, window 0x141,
root 0x116, subw 0x0, time 298861, (232,-53), root:(234,285),
state 0x10, keycode 75 (keysym 0xffc6, F9), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x141,
root 0x116, subw 0x0, time 298861, (232,-53), root:(234,285),
state 0x10, keycode 75 (keysym 0xffc6, F9), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

The weird thing is that fn-f11 and fn-f12 (volume up and volume down)
sends only the good keycode without the F11 and F12 keycode.

So for the moment I don't know if it's only a X.org problem or a
problem linked to the ACPI since the fn-key is probably associated to
the ACPI. However this does not happens on Linux.

Cheers,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Porting NetworkManager to FreeBSD

2010-04-17 Thread David DEMELIER
2010/4/16 Jerry freebsd.u...@seibercom.net:
 Has there been any movement on porting NetworkManager
 http://projects.gnome.org/NetworkManager/ to FreeBSD? I read
 something awhile ago, I don't remember where, that it was planned for
 the 8.0 release (I think). I have seen it in use on a friends PC, and
 it is really awesome.


Do you really like NM ? Each time I use it it bugs, sometimes it
connects and sometime not. Of course it's great for people who wants
something easy to manage but NM needs the users to connect the X
session.

wpa_supplicant is really great, it scans access points available and
try to connect them (you can add many networks in your
wpa_supplicant.conf) and then it starts connecting even if you're not
in your X session.

About the NM port in freebsd I guess we can wait a long time.

Cheers,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: KDE 4.4.2

2010-04-24 Thread David DEMELIER
2010/4/23 Bruce Cran bru...@muon.cran.org.uk:
 On Fri, Apr 23, 2010 at 07:58:12PM +1200, Andrew Hill wrote:
 Hi does anyone know if kde 4.4.2 is in freebsd ports?

 It's not yet - a big upgrade to Xorg and KDE is being worked on so I
 guess it'll be available in a few days.


For xorg 1.8 ?

Cheers

--
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Gaming

2010-04-29 Thread David DEMELIER
2010/4/29 Mikle Krutov nekoexmach...@gmail.com:
 On Thu, Apr 29, 2010 at 10:10:20AM -0700, Joe's Morgue wrote:
 Are there drivers for higher end graphic cards available?
 If it is nvidia: yes, proprietary and pretty good. If it is ATI, only
 opensource xf86-video-ati, that are better than fglrx for work, not for games 
 (e.g.
 less features, but more stability and less bugs).

I don't agree, if compile mesa, gl, and ati with WITHOUT_NOUVEAU
defined you will be able to play various games using real hardware
acceleration ;-)

 --
 Wbr,
 Krutov Mikle
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org




-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Using a scanner (USB) as user and not as root

2010-04-29 Thread David DEMELIER
2010/4/28 Warren Block wbl...@wonkity.com:
 On Wed, 28 Apr 2010, Marco Beishuizen wrote:

 On Wed, 28 Apr 2010, Roland Smith wrote:

 Are the permissions correct? Check with 'ls -l /dev/usb/ /dev/ugen*'.
 Is your user-id in the usb group? Check by running 'id' as the normal
 user.

 If all that is in order, remove all lines except the three above from
 /etc/devfs.rules, and try again.

 Running id as user looks ok:

 uid=1001(marco) gid=0(wheel) groups=0(wheel),5(operator),1001(usb)

 But the permissions are not:

 ls -l /dev/usb/ /dev/ugen*
 lrw-rw-r--  1 root  usb  9 Apr 28 19:05 /dev/ugen0.1 - usb/0.1.0
 lrw-rw-r--  1 root  usb  9 Apr 28 19:05 /dev/ugen1.1 - usb/1.1.0
 lrw-rw-r--  1 root  usb  9 Apr 28 21:05 /dev/ugen1.2 - usb/1.2.0
 lrw-rw-r--  1 root  usb  9 Apr 28 21:05 /dev/ugen1.3 - usb/1.3.0
 lrw-rw-r--  1 root  usb  9 Apr 28 19:05 /dev/ugen2.1 - usb/2.1.0

 /dev/usb/:
 total 0
 crw---  1 root  operator    0,  87 Apr 28 19:05 0.1.0
 crw---  1 root  operator    0,  93 Apr 28 19:05 0.1.1
 crw---  1 root  operator    0,  89 Apr 28 19:05 1.1.0
 crw---  1 root  operator    0,  94 Apr 28 19:05 1.1.1
 crw---  1 root  operator    0, 104 Apr 28 21:05 1.2.0
 crw---  1 root  operator    0, 105 Apr 28 21:05 1.2.1
 crw---  1 root  operator    0, 117 Apr 28 21:05 1.3.0
 crw---  1 root  operator    0, 119 Apr 28 21:05 1.3.1
 crw---  1 root  operator    0,  91 Apr 28 19:05 2.1.0
 crw---  1 root  operator    0,  95 Apr 28 19:05 2.1.1

 You can use devd.conf for this:

 attach 100 {
        device-name ugen[0-9].[0-9];
        match vendor 0x04b8;
        match product 0x010a;
        action usb_devaddr=`echo $device-name | sed 's#^ugen##'`  \
                chown root:saned /dev/usb/${usb_devaddr}.*  \
                chmod 0660 /dev/usb/${usb_devaddr}.*

 Copied from a post on -current or similar; apologies to the author, who I've
 forgotten.  I thought this was in the default devd.conf as an example, but
 it appears not.

 devfs.rules don't apply to devices that are created dynamically after
 boot-up.  Or I guess they might be if you reload the ruleset with applyset
 after the device is created, but devd is a lot more capable.

from devfs.rules(5) :

NAME
 devfs.rules — devfs configuration information

DESCRIPTION
 The devfs.rules file provides an easy way to create and apply devfs(8)
 rules, *even for devices that are not available at boot.*

But devfs.rules is specially made for device not available at boot
such as usb keys.

 -Warren Block * Rapid City, South Dakota USA
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org




-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


mergemaster -U ask for a lot non-user modified files

2011-02-16 Thread David Demelier

Hello,

Each time I run mergemaster -UiF, it asks for a lot of file that I do 
not have modified such as /dev/rc.d/* and /etc/defaults/*



==


  Use 'd' to delete the temporary ./etc/network.subr
  Use 'i' to install the temporary ./etc/network.subr
  Use 'm' to merge the temporary and installed versions
  Use 'v' to view the diff results again

  Default is to leave the temporary file to deal with by hand

How should I deal with this? [Leave it for later]

I never touched this file! Why it asks me to install the new one?

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Backtick versus $()

2011-02-20 Thread David Demelier

On 20/02/2011 18:40, Warren Block wrote:

$() apparently isn't quite the same as backticks, although sh(1) doesn't
mention that, or I just missed it. This script is just supposed to
escape special characters* in a path/filename:

#!/bin/sh

DESTDIR=./
COMPFILE=.cshrc

PSTR=`echo ${DESTDIR}${COMPFILE} | sed 's%\([?:.%\\]\)%\\\1%g'`
echo ${PSTR}

PSTR=$(echo ${DESTDIR}${COMPFILE} | sed 's%\([?:.%\\]\)%\\\1%g')

% ./test.sh
\1/\1cshrc
\./\.cshrc

With backticks, the backreference \1 never seems to be replaced with the
actual pattern, regardless of search pattern. Tested on 8-stable and
9-current.

*: That's special characters as less(1) -Ps sees them.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org


I'd prefere $() rather than ``. It's more powerful, for example you can 
write a multiple $() but not `` see :


markand@Abricot ~ $ echo $(basename $(which dmesg))
dmesg

markand@Abricot ~ $ echo `basename `which dmesg``
usage: basename string [suffix]
   basename [-a] [-s suffix] string [...]
which dmesg

Of course the example code is useless but shows the limitations of ``. 
Nowadays all shells supports $() so I advise you to use it :).


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mergemaster -U ask for a lot non-user modified files

2011-02-23 Thread David Demelier

On 18/02/2011 14:25, Lowell Gilbert wrote:

David Demelierdemelier.da...@gmail.com  writes:


Hello,

Each time I run mergemaster -UiF, it asks for a lot of file that I do
not have modified such as /dev/rc.d/* and /etc/defaults/*


==


   Use 'd' to delete the temporary ./etc/network.subr
   Use 'i' to install the temporary ./etc/network.subr
   Use 'm' to merge the temporary and installed versions
   Use 'v' to view the diff results again

   Default is to leave the temporary file to deal with by hand

How should I deal with this? [Leave it for later]

I never touched this file! Why it asks me to install the new one?


You're probably having problems with the mtree database that mergemaster
uses for that.  I think by default it's /var/db/mergemaster.mtree.



I also noticed that even with the -F flag, mergemaster still asks for 
files that only differs by CVS id, see :


-#  $FreeBSD: src/etc/sendmail/freebsd.mc,v 1.37.2.2.2.1 2010/06/14 
02:09:0 6 kensmith Exp $  #
 +#  $FreeBSD: src/etc/sendmail/freebsd.mc,v 1.37.2.2.4.1 
2010/12/21 17:09:2 5 kensmith Exp $  #


It's really painful..

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mergemaster -U ask for a lot non-user modified files

2011-02-24 Thread David Demelier

On 24/02/2011 07:05, Matthew Seaman wrote:

On 23/02/2011 22:14, Lowell Gilbert wrote:

David Demelierdemelier.da...@gmail.com  writes:


I also noticed that even with the -F flag, mergemaster still asks for
files that only differs by CVS id, see :

-#  $FreeBSD: src/etc/sendmail/freebsd.mc,v 1.37.2.2.2.1
2010/06/14 02:09:0 6 kensmith Exp $  #
  +#  $FreeBSD: src/etc/sendmail/freebsd.mc,v 1.37.2.2.4.1
2010/12/21 17:09:2 5 kensmith Exp $  #


Again, I think this is a local problem on your system.
It certainly works on my system (RELENG_8, updated this week).


mergemaster -U functionality depends on mergemaster having recorded an
mtree database of what the contents of your /etc (and various other
bits) looks like.  The first time you run mergemaster with the -U flag,
it's going to ask you about a lot of files -- but after that, it
remembers and you only get asked about updating files you've previously
modified.

The recommendation for minimizing the amount of questions asked is:

* the first time you run mergemaster, on a newly installed machine:

mergemaster -UFi

(This will involve quite a lot of user interaction)

* for any subsequent updates:

mergemaster -Ui

(Which will be much more automated)

The other handy tip is to make sure you don't delete the $FreeBSD$ tags
from your fles, and that when the file is modified upstream, you merge
in the new value for the tag.

Doing this certainly works for me -- frequently the only file I get
asked about is /etc/motd

Cheers,

Matthew



Yes that's true, now mergemaster do not ask me for any file except 
/etc/passwd, /etc/login.conf /etc/rc.conf and so on :)


Thanks, cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


optical driver with ahci bios mode but ata(4) driver

2011-02-28 Thread David Demelier

Hello,

My bios can be set to use IDE emulation or ahci mode, I prefere the ahci 
mode because it's a bit faster.


It's probably stupid to stay with ata(4) driver with the ahci mode, 
isn't it? But with ahci(4) driver you can't burn with burncd(8) and 
cdrecord just fail and break an blank cd for nothing.


I guess this is the correct behavior when trying to use burncd(8) / 
cdcontrol(1) :


markand@Melon ~ $ burncd msinfo
burncd: ioctl(CDIOREADTOCHEADER): Input/output error

markand@Melon ~ $ cdcontrol info
cdcontrol: getting toc header: Input/output error
cdcontrol: Input/output error

But why the optical drive is only affected? If I use ata(4) driver even 
with ahci mode set in the bios, why the hard drive works pretty well?


Kind regards,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


atacontrol spindown 0 does not work

2011-03-01 Thread David Demelier

Hello,

I don't like to hear the spin down from my hard drive, it does it every 
10 seconds approximately. I used ataidle -P 0 /dev/ad0 to disable it and 
it works.


When I saw there was a atacontrol command for this, I tried it, so I 
removed ataidle and I tried :


markand@Melon ~ $ sudo atacontrol spindown ad0 0
markand@Melon ~ $ sudo atacontrol spindown ad0
ad0: idle spin down disabled

But I can still hear the noise every 10 seconds, I think atacontrol does 
not totally close the APM feature of the device.


Do you have any clue?

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Question about nethack and setgid

2011-03-02 Thread David Demelier

Hello,

I don't understand how nethack can store the score in 
/usr/local/lib/nethack/logfile.


the real binary is here /usr/local/lib/nethack/nethack

And the mode is

-rwxr-sr-x  1 games  games  1793635 25 Jan 2011 
/usr/local/lib/nethack/nethack


So that means people in games group will run nethack as games user 
(owner of file) but I'm not in games group ! and I can save the file 
located in


/usr/local/lib/nethack/logfile which mode is -rw-rw-r--  games  games

I'm writing a game that will store file too, because I can't make it 
works like nethack I was planning using the setuid mode but I don't like 
much this ..


What am I misunderstanding?

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Question about nethack and setgid

2011-03-03 Thread David Demelier

On 03/03/2011 02:49, Robert Bonomi wrote:

Date: Wed, 02 Mar 2011 23:51:45 +0100
From: David Demelierdemelier.da...@gmail.com
To: freebsd-questions@freebsd.org
Subject: Question about nethack and setgid

Hello,

I don't understand how nethack can store the score in
/usr/local/lib/nethack/logfile.

the real binary is here /usr/local/lib/nethack/nethack

And the mode is

-rwxr-sr-x  1 games  games  1793635 25 Jan 2011
/usr/local/lib/nethack/nethack

So that means people in games group will run nethack as games user (owner
of file)


Actually, it means that the program will run with the _group_ id of the
file -- i.e. the 'games' group.  _That_ 's' is the 'sgid' or 'set groupID'
bit.


 but I'm not in games group ! and I can save the file located in

/usr/local/lib/nethack/logfile which mode is -rw-rw-r--  games  games


Lo and behold!  The file _is_ writable by the games group.


I'm writing a game that will store file too, because I can't make it
works like nethack I was planning using the setuid mode but I don't like
much this ..

What am I misunderstanding?


the function of the 'setgid' bit.grin.


Okay, that's why the program was running on my user but with games 
group. I didn't see that the file was writable by games group neither. I 
understand everything now and my game is working too :-)


Thanks,



Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions To
unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org




--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


snd_hda and via codec: no sound or full volume

2011-03-03 Thread David Demelier

Hello,

A friend has a computer with a HDA VIA codec, he told me when he's 
trying to increase/decrease vol with mixer nothing happens : in fact 
only mixer vol 0 or mixer vol 1 change something. The values between 
1-100 are the same volume.


This is dmesg about snd_hda with verbose mode :

http://files.malikania.fr/snd-hda.txt

and /dev/sndstat:

FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: HDA VIA VT1708S_0 PCM #0 Analog (play/rec) default
pcm1: HDA VIA VT1708S_0 PCM #1 Digital (play)

What happens?

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Kernel compiling problems

2011-03-03 Thread David Demelier

On 25/02/2011 12:21, Redd Vinylene wrote:

Heya!

Anybody know what's wrong with this?

## make buildworld buildkernel KERNCONF=NINJA

cc -c -O2 -pipe -fno-strict-aliasing  -std=c99  -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions
-nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000  -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -ffreestanding -fstack-protector -Werror
/usr/src/sys/kern/sysv_msg.c
/usr/src/sys/kern/sysv_msg.c:163: error: invalid application of 'sizeof' to
incomplete type 'struct freebsd7_msgctl_args'
/usr/src/sys/kern/sysv_msg.c:163: error: 'freebsd7_msgctl' undeclared here
(not in a function)
/usr/src/sys/kern/sysv_msg.c:1463: error: initializer element is not
constant
/usr/src/sys/kern/sysv_msg.c:1463: error: (near initialization for
'msgcalls[0]')
cc1: warnings being treated as errors
/usr/src/sys/kern/sysv_msg.c:1507: warning: function declaration isn't a
prototype
/usr/src/sys/kern/sysv_msg.c: In function 'freebsd7_msgctl':
/usr/src/sys/kern/sysv_msg.c:1516: error: dereferencing pointer to
incomplete type
/usr/src/sys/kern/sysv_msg.c:1516: error: request for member 'cmd' in
something not a structure or union
/usr/src/sys/kern/sysv_msg.c:1516: warning: comparison between pointer and
integer
/usr/src/sys/kern/sysv_msg.c:1517: error: dereferencing pointer to
incomplete type
/usr/src/sys/kern/sysv_msg.c:1517: error: request for member 'buf' in
something not a structure or union
/usr/src/sys/kern/sysv_msg.c:1532: error: dereferencing pointer to
incomplete type
/usr/src/sys/kern/sysv_msg.c:1532: error: request for member 'msqid' in
something not a structure or union
/usr/src/sys/kern/sysv_msg.c:1532: error: dereferencing pointer to
incomplete type
/usr/src/sys/kern/sysv_msg.c:1532: error: request for member 'cmd' in
something not a structure or union
/usr/src/sys/kern/sysv_msg.c:1532: warning: passing argument 2 of
'kern_msgctl' makes integer from pointer without a cast
/usr/src/sys/kern/sysv_msg.c:1532: warning: passing argument 3 of
'kern_msgctl' makes integer from pointer without a cast
/usr/src/sys/kern/sysv_msg.c:1535: error: dereferencing pointer to
incomplete type
/usr/src/sys/kern/sysv_msg.c:1535: error: request for member 'cmd' in
something not a structure or union
/usr/src/sys/kern/sysv_msg.c:1535: warning: comparison between pointer and
integer
/usr/src/sys/kern/sysv_msg.c:1548: error: dereferencing pointer to
incomplete type
/usr/src/sys/kern/sysv_msg.c:1548: error: request for member 'buf' in
something not a structure or union
*** Error code 1

Stop in /usr/obj/usr/src/sys/NINJA.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

## /usr/obj/usr/src/sys/NINJA

cpu I586_CPU

ident NINJA

options SCHED_ULE

options PREEMPTION

options FFS

options SOFTUPDATES

options UFS_ACL

options UFS_DIRHASH

options UFS_GJOURNAL

options MD_ROOT

options MSDOSFS

options CD9660

options PROCFS

options PSEUDOFS

options COMPAT_43

options COMPAT_FREEBSD4

options COMPAT_FREEBSD5

options COMPAT_FREEBSD6

options KTRACE

options SYSVSHM

options SYSVMSG

options SYSVSEM

options KBD_INSTALL_CDEV

options _KPOSIX_PRIORITY_SCHEDULING

device pci

device sio

device ata

device atadisk

device atapicd

options ATA_STATIC_ID

device fdc

device atkbdc

device atkbd

device psm

device vga

device splash

device sc

device sound

device ether

device miibus

device rl

device ep

device loop

device random

device tun

device pty

device md

options AUDIT

options INET

options INET6

device gif

device faith

device bpf

device pf

device pflog

device pfsync

options ALTQ

options ALTQ_CBQ

options ALTQ_RED

options ALTQ_RIO

options ALTQ_HFSC

options ALTQ_PRIQ

## uname -v

FreeBSD 7.0-STABLE #0: Thu Jul 24 18:57:08 CEST 2008

## /etc/cvsupfile

*default host=cvsup.no.FreeBSD.org

*default base=/var/db

*default prefix=/usr

*default release=cvs tag=RELENG_8

*default delete use-rel-suffix

src-all

doc-all tag=.

Many thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


I hope you're not running buildworld eachtime you try to compile the 
kernel :p


--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


FreeBSD kernel init slower than linux

2011-03-04 Thread David Demelier

Hello,

I know this is a awful subject, but I recently tried a Gentoo on my 
laptop and I was surprised to see Linux booting about 2-3 times faster 
than FreeBSD.


I don't talk about the init/rc script but only kernel initialisation. 
For linux kernel it's around 5-6 seconds vs 15-18 seconds for FreeBSD.


Why FreeBSD is so slower than Linux to boot the kernel?

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Switching between ttys takes 5 seconds with radeon hd 5670

2011-03-05 Thread David Demelier

Hello,

I've got a brand new radeon hd 5670, when I switch between ttys it takes 
about 5 seconds to refresh (to show the next tty)


Is this due to the lack of KMS support in FreeBSD?

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: optical driver with ahci bios mode but ata(4) driver

2011-03-06 Thread David Demelier

On 05/03/2011 21:22, Paul B. Mahol wrote:

On Mon, Feb 28, 2011 at 8:31 PM, David Demelier
demelier.da...@gmail.com  wrote:

Hello,

My bios can be set to use IDE emulation or ahci mode, I prefere the ahci
mode because it's a bit faster.

It's probably stupid to stay with ata(4) driver with the ahci mode, isn't
it? But with ahci(4) driver you can't burn with burncd(8) and cdrecord just
fail and break an blank cd for nothing.

I guess this is the correct behavior when trying to use burncd(8) /
cdcontrol(1) :

markand@Melon ~ $ burncd msinfo
burncd: ioctl(CDIOREADTOCHEADER): Input/output error

markand@Melon ~ $ cdcontrol info
cdcontrol: getting toc header: Input/output error
cdcontrol: Input/output error

But why the optical drive is only affected? If I use ata(4) driver even with
ahci mode set in the bios, why the hard drive works pretty well?


Are you using atapicam module?


No I was only using ata, atapicd. I would like to use ahci + cdrecord 
but it fails to burn too :(


--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Switching between ttys takes 5 seconds with radeon hd 5670

2011-03-06 Thread David Demelier

On 05/03/2011 19:03, Warren Block wrote:

On Sat, 5 Mar 2011, David Demelier wrote:


I've got a brand new radeon hd 5670, when I switch between ttys it
takes about 5 seconds to refresh (to show the next tty)


Do you mean switching between text consoles (ttyv) or between a text
console and X?



No no, I don't have X installed right now, it's only switching between 
differents terminal ttyv0 - ttyv1 ; ttyv2 - ttyv0 ; etc.



Switching between X and a console, or particularly back from a console
to X, is slow unless you have moused_enable=YES in /etc/rc.conf.


Is this due to the lack of KMS support in FreeBSD?


Probably not.



--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Switching between ttys takes 5 seconds with radeon hd 5670

2011-03-06 Thread David Demelier

On 05/03/2011 19:03, Warren Block wrote:

On Sat, 5 Mar 2011, David Demelier wrote:


I've got a brand new radeon hd 5670, when I switch between ttys it
takes about 5 seconds to refresh (to show the next tty)


Do you mean switching between text consoles (ttyv) or between a text
console and X?

Switching between X and a console, or particularly back from a console
to X, is slow unless you have moused_enable=YES in /etc/rc.conf.


Is this due to the lack of KMS support in FreeBSD?


Probably not.


I recompiled the kernel with the VESA stuff, it's faster again now. 
Don't know if it only appears with GENERIC then.


--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: optical driver with ahci bios mode but ata(4) driver

2011-03-06 Thread David Demelier

On 06/03/2011 15:15, Brandon Gooch wrote:

On Mar 6, 2011, at 2:14 AM, David Demelierdemelier.da...@gmail.com  wrote:


On 05/03/2011 21:22, Paul B. Mahol wrote:

On Mon, Feb 28, 2011 at 8:31 PM, David Demelier
demelier.da...@gmail.com   wrote:

Hello,

My bios can be set to use IDE emulation or ahci mode, I prefere the ahci
mode because it's a bit faster.

It's probably stupid to stay with ata(4) driver with the ahci mode, isn't
it? But with ahci(4) driver you can't burn with burncd(8) and cdrecord just
fail and break an blank cd for nothing.

I guess this is the correct behavior when trying to use burncd(8) /
cdcontrol(1) :

markand@Melon ~ $ burncd msinfo
burncd: ioctl(CDIOREADTOCHEADER): Input/output error

markand@Melon ~ $ cdcontrol info
cdcontrol: getting toc header: Input/output error
cdcontrol: Input/output error

But why the optical drive is only affected? If I use ata(4) driver even with
ahci mode set in the bios, why the hard drive works pretty well?


Are you using atapicam module?


No I was only using ata, atapicd. I would like to use ahci + cdrecord but it 
fails to burn too :(

--
David Demelier


Have you tried burning using the -tao option?



It fails too.


Also, mav@ has a set of patches to get cd burning working with CAM, just search 
the mailing list archives -- I seem to recall that you may have previously been 
a part of a discussion concerning this situation?

-Brandon


Yes because I don't know which driver to use, I don't want to apply 
patches by hand, I'll wait until it's fixed correctly to use ahci / 
cdrecord.


--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Fwd: Re: snd_hda, codec attaching randomly?

2011-03-17 Thread David Demelier

Hello,

I've setup a brand new computer from scratch, it has two HDMI output
(via the on board and via the ati graphic card) with one codec for the
main board.

Usually I have these pcm :

pcm0: HDA ATI R6xx HDMI PCM #0 HDMI at cad 0 nid 1 on hdac0
pcm1: HDA Realtek ALC888 PCM #0 Analog at cad 0 nid 1 on hdac1
pcm2: HDA Realtek ALC888 PCM #1 Analog at cad 0 nid 1 on hdac1
pcm3: HDA Realtek ALC888 PCM #2 Digital at cad 0 nid 1 on hdac1
pcm4: HDA Intel G45 HDMI PCM #0 DisplayPort at cad 3 nid 1 on hdac1

But sometime when I boot the pcm4 disappear, with a lot of :

hdac1: hdac_widget_connection_parse: nid=2 WARNING: zero cnid entnum=4
j=0 index=0 entries=17 found=0 res=0x
hdac1: hdac_widget_connection_parse: nid=2 WARNING: zero cnid entnum=4
j=1 index=0 entries=17 found=1 res=0x
hdac1: hdac_widget_connection_parse: nid=2 WARNING: zero cnid entnum=4
j=2 index=0 entries=17 found=2 res=0x
hdac1: hdac_widget_connection_parse: nid=2 WARNING: zero cnid entnum=4
j=3 index=0 entries=17 found=3 res=0x
[.. snip ..]

Here you can see the normal dmesg file :
http://files.malikania.fr/normal.txt

And here when the pcm disappear :
http://files.malikania.fr/notnormal.txt

A simple diff from the files show some weird things:

diff -ub normal.txt notnormal.txt
--- normal.txt 2011-03-10 08:06:14.0 +0100
+++ notnormal.txt 2011-03-10 08:06:18.0 +0100
@@ -116,24 +116,90 @@
hdac0: HDA Codec #0: ATI R6xx HDMI
pcm0: HDA ATI R6xx HDMI PCM #0 HDMI at cad 0 nid 1 on hdac0
hdac1: HDA Codec #0: Realtek ALC888
-hdac1: HDA Codec #3: Intel G45 HDMI
+hdac1: HDA Codec #3: Intel Q57 HDMI
+hdac1: hdac_widget_connection_parse: nid=2 WARNING: zero cnid entnum=4
j=0 index=0 entries=17 found=0 res=0x
+hdac1: hdac_widget_connection_parse: nid=2 WARNING: zero cnid entnum=4
j=1 index=0 entries=17 found=1 res=0x

[... message repeated a lot of time ...]

pcm1: HDA Realtek ALC888 PCM #0 Analog at cad 0 nid 1 on hdac1
pcm2: HDA Realtek ALC888 PCM #1 Analog at cad 0 nid 1 on hdac1
pcm3: HDA Realtek ALC888 PCM #2 Digital at cad 0 nid 1 on hdac1
-pcm4: HDA Intel G45 HDMI PCM #0 DisplayPort at cad 3 nid 1 on hdac1

Why does the HDMI codec is renamed to Q57?

I didn't tweak snd_hda(4) much, I only added the following in my
/boot/devices.hints to get a proper jack-sense on my front panel:

hint.hdac.1.cad0.nid27.config=as=1 seq=15

Cheers,



Oh I noticed something weird too:

 SMP: AP CPU #1 Launched!
-SMP: AP CPU #3 Launched!
 SMP: AP CPU #2 Launched!
+SMP: AP CPU #3 Launched!

It seems the order of CPU change? I know that the Intel GMA HD graphics
needs a Intel CPU compatible to get this video chipset working.

So maybe the audio codec is attaching to the wrong core? I have no
really idea, it appears really randomly nothing can change the behavior

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


devd started with single-user mode?

2011-03-20 Thread David Demelier

Hello,

I just realized that I can't use my USB keyboard if I start FreeBSD in 
single user mode. The keyboard is still detected but I can't use it.


It works with the loader of course. I don't know if it's related to devd 
and if it's running.


I also have USB legacy enabled in the BIOS settings.

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: devd started with single-user mode?

2011-03-20 Thread David Demelier

On 20/03/2011 12:13, Polytropon wrote:

On Sun, 20 Mar 2011 09:55:35 +0100, David Demelierdemelier.da...@gmail.com  
wrote:

Hello,

I just realized that I can't use my USB keyboard if I start FreeBSD in
single user mode. The keyboard is still detected but I can't use it.

It works with the loader of course. I don't know if it's related to devd
and if it's running.

I also have USB legacy enabled in the BIOS settings.


Do you have kbdmux in your kernel? If you don't have it,
switching to the other keyboard is needed to be issued
from the AT keyboard (if present), using the kbdcontrol
program.

Kernel configuration should contain:

options KBD_INSTALL_CDEV# install a CDEV entry in /dev
# atkbdc0 controls both the keyboard and the PS/2 mouse
device  kbdmux  # keyboard multiplexer
device  atkbdc  # AT keyboard controller
device  atkbd   # AT keyboard
options ATKBD_DFLT_KEYMAP
makeoptions ATKBD_DFLT_KEYMAP=german.iso
# USB support stuff here...
device  ukbd# Keyboard
options UKBD_DFLT_KEYMAP
makeoptions UKBD_DFLT_KEYMAP=german.iso

If I remember correctly, most of the important lines are
part of the GENERIC kernel configuration.

On my system, I can't use the USB keyboard in CMOS setup
or at the loader, but it works as soon as the kernel has
finished loading, so when the boot process has enabled
the single user mode, the USB keyboard is usable. For
loader-related things, I still have to keep a PS/2 AT
keyboard handy.




Oh yes I have kbdmux but as module only since the /etc/rc.d/bthidd 
wanted to load it itself. I added as device instead of modules.


Thanks!

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: devd started with single-user mode?

2011-03-21 Thread David Demelier

On 20/03/2011 12:13, Polytropon wrote:

On Sun, 20 Mar 2011 09:55:35 +0100, David Demelierdemelier.da...@gmail.com  
wrote:

Hello,

I just realized that I can't use my USB keyboard if I start FreeBSD in
single user mode. The keyboard is still detected but I can't use it.

It works with the loader of course. I don't know if it's related to devd
and if it's running.

I also have USB legacy enabled in the BIOS settings.


Do you have kbdmux in your kernel? If you don't have it,
switching to the other keyboard is needed to be issued
from the AT keyboard (if present), using the kbdcontrol
program.

Kernel configuration should contain:

options KBD_INSTALL_CDEV# install a CDEV entry in /dev
# atkbdc0 controls both the keyboard and the PS/2 mouse
device  kbdmux  # keyboard multiplexer
device  atkbdc  # AT keyboard controller
device  atkbd   # AT keyboard
options ATKBD_DFLT_KEYMAP
makeoptions ATKBD_DFLT_KEYMAP=german.iso
# USB support stuff here...
device  ukbd# Keyboard
options UKBD_DFLT_KEYMAP
makeoptions UKBD_DFLT_KEYMAP=german.iso

If I remember correctly, most of the important lines are
part of the GENERIC kernel configuration.

On my system, I can't use the USB keyboard in CMOS setup
or at the loader, but it works as soon as the kernel has
finished loading, so when the boot process has enabled
the single user mode, the USB keyboard is usable. For
loader-related things, I still have to keep a PS/2 AT
keyboard handy.




The problem when you're using directly kbdmux in the kernel config, the 
ATKBD_DFLT_KEYMAP and UKBD_DFLT_KEYMAP are ineffective, you can't set 
these both together ...


For me I added these both to use uk.iso but in single user mode I still 
have the standard us layout.


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: devd started with single-user mode?

2011-03-21 Thread David Demelier

On 21/03/2011 10:51, Pan Tsu wrote:

David Demelierdemelier.da...@gmail.com  writes:


The problem when you're using directly kbdmux in the kernel config,
the ATKBD_DFLT_KEYMAP and UKBD_DFLT_KEYMAP are ineffective, you can't
set these both together ...

For me I added these both to use uk.iso but in single user mode I
still have the standard us layout.


Can you try the patch in kern/153459 ? It adds KBDMUX_DFLT_KEYMAP which
allows using non-default layout in single user mode or ddb.


By the way why is kbdmux needed for an usb keyboard? Should not be 
managed by ukbd only?


I don't understand .. But thanks for the patch.

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Wireless always getting down/up

2011-03-21 Thread David Demelier

Hello,

In my university there is a special WPA-EAP access point used for safety.

I can't get a connection alive 15 minutes without being deconnected..

I noticed these messages when the problem appears :

Mar 21 11:58:42 Melon wpa_supplicant[351]: CTRL-EVENT-EAP-STARTED EAP 
authentication started
Mar 21 11:58:42 Melon wpa_supplicant[351]: CTRL-EVENT-EAP-METHOD EAP 
vendor 0 method 21 (TTLS) selected
Mar 21 11:58:42 Melon wpa_supplicant[351]: OpenSSL: 
tls_connection_handshake - Failed to read possible Application Data 
error::lib(0):func(0):reason(0)


Is this a wpa_supplicant/openssl trouble ?

This is the following configuration I must use (provided by my university)

network={
priority=10
ssid=eduroam
proto=WPA2 WPA
scan_ssid=1
key_mgmt=WPA-EAP
pairwise=TKIP
group=TKIP
eap=TTLS
ca_cert=/etc/iut-cert.pem
anonymous_identity=anonym...@u-strasbg.fr
phase2=auth=PAP
identity=myusername
password=mypasssword
}

Disabling ca_cert or enabling does not solve.

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: devd started with single-user mode?

2011-03-21 Thread David Demelier

On 21/03/2011 12:11, Polytropon wrote:

On Mon, 21 Mar 2011 11:45:06 +0100, David Demelierdemelier.da...@gmail.com  
wrote:

By the way why is kbdmux needed for an usb keyboard? Should not be
managed by ukbd only?

I don't understand .. But thanks for the patch.


Basically, the kbdmux option wires keyboards in parallel, so
you can use both keyboards (assume they are physically present)
at the same time, like one keyboard for each hand. If this
option was not present, you would have to use kbdcontrol -k
to switch from one keyboard (the currently active one) to the
other (not usable). Problems may occur if your mainboard does
provide an AT style keyboard (usually with PS/2 connector) as
atkbdc0 and adkbd0 (controller and keyboard) even if there is
no physical keyboard attached. This would then usually become
the primary keyboard. A USB keyboard, detected later on as
ukbd0, would not automatically be activated (or switched over
to by a kbdcontrol -k command issued by devd) and can therefore
not be used, even if physically present (in opposite to the
phantom keyboard atkbd0). The kbdmux option makes _all_
keyboards available for input (without using kbdcontrol -k
and without dependency of devd) so the USB keyboard will be
used, the AT phantom keyboard will be ignored (which is good
when it's not even present).

So basically, kbdmux means use all of them, while its absence
means use this or that.





Thanks for this information :-) I understood. I hope the patch proposed 
will be MFC to -STABLE then.


Kind regards,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: gkrellm2 GnuTLS and OpenSSL, conky doesn't work :(

2011-03-21 Thread David Demelier

On 21/03/2011 16:57, Antonio Olivares wrote:

Dear FreeBSD experts,

I wanted to install gkrellm2 and I get the following error.

grullahighschool# cd /usr/ports/sysutils/
grullahighschool# cd gkrellm2
grullahighschool# pwd
/usr/ports/sysutils/gkrellm2
grullahighschool# make install clean
===   gkrellm-2.3.4_3 is marked as broken: GnuTLS and OpenSSL is
mutually exclusive..
*** Error code 1



I think this is an error easy to understand for people that speak a 
little english.


You can't install gkrellm2 with both GNUTLS and OPENSSL options at the 
same time!


Do make config and disable GNUTLS (it's the default thus I assume you 
probably enabled it)



Stop in /usr/ports/sysutils/gkrellm2.


I then thought to myself conky can do the job too, so I tried to
install it and it succeeded, but when I try to run it, I get the
following:

[olivares@grullahighschool ~]$ conky
Conky: no readable personal or system-wide config file found



You may need to write a ~/.conkyrc to run properly conky. Please read 
conky. It's easy to understand or search for conky examples on the web.



I am running 8.1 freebsd

[olivares@grullahighschool ~]$ uname -a
FreeBSD grullahighschool.rgccisd.org 8.1-RELEASE-p0 FreeBSD
8.1-RELEASE-p0 #0: Mon Jul 26 08:26:45 UTC 2010
r...@hybrid.freebsdgr.org:/usr/obj/usr/src/sys/GENERIC  amd64

Thanks for any pointers as to how to solve at least one of the two.
If I can get conky to work, I'd be happy or get gkrellm running XFCE
as the desktop.

Regards,

Antonio
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: gkrellm2 GnuTLS and OpenSSL, conky doesn't work :(

2011-03-21 Thread David Demelier

On 21/03/2011 18:45, Antonio Olivares wrote:

On Mon, Mar 21, 2011 at 12:27 PM, David Demelier
demelier.da...@gmail.com  wrote:

On 21/03/2011 16:57, Antonio Olivares wrote:


Dear FreeBSD experts,

I wanted to install gkrellm2 and I get the following error.

grullahighschool# cd /usr/ports/sysutils/
grullahighschool# cd gkrellm2
grullahighschool# pwd
/usr/ports/sysutils/gkrellm2
grullahighschool# make install clean
=== gkrellm-2.3.4_3 is marked as broken: GnuTLS and OpenSSL is
mutually exclusive..
*** Error code 1



I think this is an error easy to understand for people that speak a little
english.

You can't install gkrellm2 with both GNUTLS and OPENSSL options at the same
time!

Do make config and disable GNUTLS (it's the default thus I assume you
probably enabled it)


Stop in /usr/ports/sysutils/gkrellm2.


I then thought to myself conky can do the job too, so I tried to
install it and it succeeded, but when I try to run it, I get the
following:

[olivares@grullahighschool ~]$ conky
Conky: no readable personal or system-wide config file found



You may need to write a ~/.conkyrc to run properly conky. Please read conky.
It's easy to understand or search for conky examples on the web.


I am running 8.1 freebsd

[olivares@grullahighschool ~]$ uname -a
FreeBSD grullahighschool.rgccisd.org 8.1-RELEASE-p0 FreeBSD
8.1-RELEASE-p0 #0: Mon Jul 26 08:26:45 UTC 2010
r...@hybrid.freebsdgr.org:/usr/obj/usr/src/sys/GENERIC  amd64

Thanks for any pointers as to how to solve at least one of the two.
If I can get conky to work, I'd be happy or get gkrellm running XFCE
as the desktop.


Cheers,

--

David,

Thank you very much for your help :)  I have run
# make config
and disabled the bad guy and now I am in business with gkrellm.  I did
not know how to go back and make changes, and with your guidance I
overcame the problem.

On the other hand with conky, I get error

[olivares@grullahighschool ~]$ conky -C  ~/.conkyrc
[olivares@grullahighschool ~]$ conky
Conky: Xft not enabled at compile time
Conky: desktop window (143) is subwindow of root window (12b)
Conky: window type - desktop
Conky: drawing to created window (0x1e1)
Conky: drawing to single buffer
Segmentation fault: 11 (core dumped)
[olivares@grullahighschool ~]$ conky
Conky: Xft not enabled at compile time
Conky: desktop window (143) is subwindow of root window (12b)
Conky: window type - desktop
Conky: drawing to created window (0x1e1)
Conky: drawing to single buffer


It starts up find, but then crashes.  But I have gkrellm working so I
am happy :)



sorry I don't use conky anymore, it crashes and leave a core dump or not 
? Some window manager does not handle well conky and may redraw the root 
over the conky that's why sometime the conky output may disappear.


If this is your case take a look at the own_window or window_type 
settings (I don't know exactly sorry).



Regards,

Antonio


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: why vim ports have personal KNOBS for options

2011-03-28 Thread David Demelier

On 27/03/2011 21:40, Subbsd wrote:

On Sun, Mar 27, 2011 at 10:48 PM, Erik Trulssonertr1...@student.uu.se  wrote:

On Sun, Mar 27, 2011 at 10:19:44PM +0400, Subbsd wrote:

Ive wanted to ask why the option of vim port has not yet been handed
via dialog by default. Personally, to make them work, we must define
WITH_OPTIONS=yes in make.conf (or WITH_VIM_OPTIONS=yes). Life without
it is so difficult ;)


Because the maintainer of the vim port has a dislike for the OPTIONS
framework.




I expected to hear that just so happened historically. Тext question I
ask only to satisfy my interest. What OPTIONS framework basically can
someone not like it?
Цhat are the disadvantages compared to  grep define
/usr/ports/category/portname/Makefile ? Maybe the other of
thousand maintainrs something not know about it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


bapt@ made a proposal to improve the OPTION framework and it will be 
reviewed by portmgr@ soon.


This will include a improvment that obrien@ disliked much : when you 
have WITHOUT_NLS=true in your /etc/make.conf any port that use OPTIONS 
framework will not honour this knob and this is obviously painful.


The bapt@ patch correct this, so the the new OPTION framework will read 
these KNOBS (but of course there is more coming)


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


printf() leak?

2011-03-29 Thread David Demelier

Hello,

It seems printf() always alloc something and does not free it:

#include stdio.h
#include stdlib.h

int
main(void)
{
printf(Hi\n);
return 0;
}

and valgrind ./a.out:

==67840==
==67840== HEAP SUMMARY:
==67840== in use at exit: 4,096 bytes in 1 blocks
==67840==   total heap usage: 1 allocs, 0 frees, 4,096 bytes allocated
==67840==
==67840== LEAK SUMMARY:
==67840==definitely lost: 0 bytes in 0 blocks
==67840==indirectly lost: 0 bytes in 0 blocks
==67840==  possibly lost: 0 bytes in 0 blocks
==67840==still reachable: 0 bytes in 0 blocks
==67840== suppressed: 4,096 bytes in 1 blocks

(The experience on Linux does not leak)

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: printf() leak?

2011-03-29 Thread David Demelier

On 29/03/2011 09:59, Eitan Adler wrote:

Hi David,


It seems printf() always alloc something and does not free it:


What compiler and what optimizations? Most compilers will optimize a
printf without any special formatting into a puts call instead of a
printf call.


I was using clang / gcc without any optimisations.


For example clang -O3 -fomit-frame-pointer (which I use for clarity
here) outputs this code:

 .file   leak.c
...
main:   # @main
# BB#0: # %entry
 subl$12, %esp
 movl$str, (%esp)
 calll   puts
 xorl%eax, %eax
 addl$12, %esp
 ret
.Ltmp0:
...
str:
 .asciz   Hi
 .size   str, 3
...

  [snip]

==67840== suppressed: 4,096 bytes in 1 blocks


Lets take a look at what valgrind says immediately after this:
==14481== For counts of detected and suppressed errors, rerun with: -v

One of the lines we get is
--14508-- used_suppression:  1 libc puts leak



I didn't see this one, thanks!


Which means it is a known issue and has been specially marked as to
avoid being reported by valgrind.

Lets take a look to see where this suppression happens: in
/usr/local/lib/valgrind/default.supp we find
{
libc puts leak
Memcheck:Leak
fun:malloc
obj:/lib/libc.so.7
obj:/lib/libc.so.7
obj:/lib/libc.so.7
fun:puts
fun:main
}

After some investigation I was able to find the following commit:
http://p4db.freebsd.org/chv.cgi?CH=168767 which shows when this
suppression was added and by whom.

I trust that if you are interested in the details of why this leak is
detected you have the skills to follow up on this by yourself :-)



Thanks a lot for the details.


Thank you for trying to make FreeBSD better!




:-)

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Random kernel blocking loop message (btx halted)

2011-03-29 Thread David Demelier

Hi folks,

Sometimes (really rare), when I boot these messages appears in a 
infinite loop :


http://markand.malikania.fr/Photo0393.jpg

These messages are printed so fast that I can't read it, happily Scroll 
lock key let me take a picture.


When this appears I have no solution instead rebooting with ctrl + alt + 
delete.


My machine is running on a Intel DH55HC with FreeBSD 8.2-RELEASE amd64.

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: graphical representation of `du`

2011-04-03 Thread David Demelier

On 02/04/2011 19:30, Chris Rees wrote:

On 2 April 2011 18:22, Chris Reesutis...@gmail.com  wrote:

On 2 April 2011 18:07, Mike Jeaysmike.je...@rogers.com  wrote:

On Sat, 2 Apr 2011 17:15:04 +0100
Chris Reesutis...@gmail.com  wrote:


du -h . | awk '{a[i++]=$0} END {for (j=i-1; j=0;) print a[j--] }' |
awk '{print($2 [$1]);}' | sed -e 's,[^-][^/]*/,--,g' -e 's,^,|,'



I confess to being impressed...



Yeah, but perhaps I should have used sed instead of the second awk;
fewer processes:

du -h | awk '{a[i++]=$0} END {for (j=i-1; j=0;) print a[j--] }' | sed
-e 's,^[^1-9]*\([^___CTRL-V+TAB__]*\)CTRL-V+TAB_*\(.*\)$,\2
\[\1\],;s,[^-][^/]*/,--,g;s,^,|,'

That does exactly the same --  where I've put CTRL-V+TAB__ you
have to type Ctrl-V, then a literal [::tab::] key; BSD sed doesn't do
\t.

Chris



Final version:

http://www.bayofrum.net/~crees/graphical_du.sh

Maybe I should port it...



Thanks! This rocks! :-)


Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: console based sound control

2011-04-03 Thread David Demelier

On 03/04/2011 15:59, Alokat wrote:

Hi,

I'm looking for a sound control tool (like alsamixer) but for oss.

Does someone know one?

Regards,
alokat
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org


try them :

audio/aumix   Audio mixer for X11, terminal, or command line
audio/umixAdvanced tool for adjusting soundcard mixers, 
replacement for aumix


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


npviewer and ELF binary type 0 not known

2011-04-06 Thread David Demelier

Hello,

I had a power failure and a lot of fsck issues after. I don't know if my 
system is having corrupt files but I can't use flash player anymore :


markand@Groseille ~ $ nspluginwrapper -v -a -i
Auto-install plugins from /home/markand/.mozilla/plugins
Looking for plugins in /home/markand/.mozilla/plugins
ELF binary type 0 not known.
/usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: 1: Syntax error: 
( unexpected


markand@Groseille ~ $ nspluginwrapper -v -i 
/usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so

ELF binary type 0 not known.
/usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: 1: Syntax error: 
( unexpected
nspluginwrapper: no appropriate viewer found for 
/usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so


Even reinstalling nspluginwrapper or linux-10-flashplugin does not solve ..

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: npviewer and ELF binary type 0 not known

2011-04-06 Thread David Demelier

On 06/04/2011 08:44, David Demelier wrote:

Hello,

I had a power failure and a lot of fsck issues after. I don't know if my
system is having corrupt files but I can't use flash player anymore :

markand@Groseille ~ $ nspluginwrapper -v -a -i
Auto-install plugins from /home/markand/.mozilla/plugins
Looking for plugins in /home/markand/.mozilla/plugins
ELF binary type 0 not known.
/usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: 1: Syntax error:
( unexpected

markand@Groseille ~ $ nspluginwrapper -v -i
/usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so
ELF binary type 0 not known.
/usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: 1: Syntax error:
( unexpected
nspluginwrapper: no appropriate viewer found for
/usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so

Even reinstalling nspluginwrapper or linux-10-flashplugin does not solve ..

Cheers,



Sorry it's my fault, the linux_enable=YES was removed in my rc.conf. 
Solved.


Cheers.

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: vmware-tools-freebsd No drivers for x.org version: 7.6.5.

2011-04-08 Thread David Demelier

On 08/04/2011 12:17, Dimitry Andric wrote:

On 2011-04-08 10:42, Matthias Apitz wrote:

I have FreeBSD 9-CURRENT up and running in a VMware Workstation 7.x and
I tried to install the vmware-tools-freebsd of VMware to get the driver
for Xorg, but it seems that X.org 7.6.5. is not supported. My other VM
runs a 8-CURRENT with X.org 7.4_1 which works fine.

Any idea how to solve this? Should I go back to X.org 7.4_1 in
9-CURRENT? Or should I fake the vmware-tools installer to see X.org as
/.4 while it is 7.6.5?


X.org 7.5 already has VMware drivers, so you can just install the
x11-drivers/xf86-input-vmmouse and x11-drivers/xf86-video-vmware ports.

Alternatively, run make config in x11-drivers/xorg-drivers, check the
VMMOUSE and VMWARE entries, and rebuild this meta-port.

Btw, I have no idea why these drivers are not enabled by default. They
would seem very useful in a default X.org installation.


Probably because a lot of people do not use VMware products.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


webcamd started two times for the same webcam

2011-04-29 Thread David Demelier

Hello,

I have a little problem with the webcamd(8) rc script. It tries to start 
two times on the same peripheral :


Starting webcamd.
Attached ugen3.2[0] to cuse unit -1
Starting webcamd.
Webcamd is already running for ugen3.2.0
/usr/local/etc/rc.d/webcamd: WARNING: failed to start webcamd

I tried adding webcamd_flags=-d 3.2 but it does not solve.

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Get the dev.cpu.0.temperature from sysctl(3)

2011-05-03 Thread David Demelier

Hello,

I would like to get the dev.cpu.0.temperature node from sysctlbyname(). 
It seems this node is an opaque type but how to check it and store it to 
the appropriate variable type ?


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Get the dev.cpu.0.temperature from sysctl(3)

2011-05-03 Thread David Demelier

On 03/05/2011 21:40, Roland Smith wrote:

On Tue, May 03, 2011 at 10:12:33AM +0200, David Demelier wrote:

Hello,

I would like to get the dev.cpu.0.temperature node from sysctlbyname().
It seems this node is an opaque type but how to check it and store it to
the appropriate variable type ?


The best way to determine this is to read the source. I did that some time ago
to fix the temperature display in sysutils/conky.

The sysctl dev.cpu.0.temperature returns an integer, see
/sys/dev/coretemp/coretemp.c (look for the string temperature), and you'll 
see:

 /*
  * Add the temperature MIB to dev.cpu.N.
  */
 sc-sc_oid = SYSCTL_ADD_PROC(device_get_sysctl_ctx(pdev),
 SYSCTL_CHILDREN(device_get_sysctl_tree(pdev)),
 OID_AUTO, temperature,
 CTLTYPE_INT | CTLFLAG_RD,
 dev, 0, coretemp_get_temp_sysctl, IK,
 Current temperature);

If you look at the definition of coretemp_get_temp_sysctl in the same file:

coretemp_get_temp_sysctl(SYSCTL_HANDLER_ARGS)
{
 device_t dev = (device_t) arg1;
 int temp;

 temp = coretemp_get_temp(dev) * 10 + TZ_ZEROC;

 return (sysctl_handle_int(oidp,temp, 0, req));
}

So the returned value is an 'int'. Note that TZ_ZEROC is #defined as 2732 at
the beginning of the file. The returned value is therefore the temperature
in Kelvin times ten.

On my machine, it gives e.g.:

 sysctl dev.cpu.0.temperature
dev.cpu.0.temperature: 46.0C

If we check the 'raw' return value;

 sysctl -b dev.cpu.0.temperature|hd
   78 0c 00 00   |x...|
 0004

Running this value with the abovementioned algorithm in reverse through a
calculator, we get

(0x0c78-2732)/10 = 46°C

Hope this helps.


Roland


Thanks a lot!

I had a look into the src and I saw the format IK used to register the 
sysctl node but I was also surprised that IK was not defined in man 
sysctl(9)


But I finally understood that K should means Kelvin :)

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Piping find into tar...

2011-05-04 Thread David Demelier

On 04/05/2011 09:25, Modulok wrote:

List,

I've been playing with the find command lately. Is there a way I can pipe the
putput list of files from find, into the tar command to create an archive which
contains the files which find lists? I tried the following, but it didn't work
(obviously).

find -E . '.*\.txt$' -print | tar -cjf result.tgz

Thanks!
-Modulok-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Hi Modulok,

As Peter said you could try using the xargs command with find. This 
should works as well:


find -E . '.*\.txt$' -print | xargs tar -czf result.tgz
--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Seeking full-cups/lpd compilant printer

2011-05-04 Thread David Demelier

Hello,

I'm searching a printer that works with cups only (I mean no hplip 
needed no specific vendor driver).


I would like a simple desktop printer with scanner built-in for simple 
copies.


http://www.epson.co.uk/Printers-and-All-In-Ones/Inkjet/Epson-Stylus-SX125

I like this one but the openprinting site says it recommends the epson 
drivers so I don't know if it works without and cups only...


Do you have some good advices ?

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Asus N70SV does not boot

2011-05-05 Thread David Demelier

Hello,

We are trying to boot the amd64 8.2-RELEASE cd and it get stucks at the 
end of:


cd0: hp DVDRAM GT20L DC05 Removable CD-ROM SCSI-0 device
cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present 
- tray closed


Nothing happens, even five minutes later.. The motherboard is on a SIS 
chipset, do you have any clue on this?


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Asus N70SV does not boot

2011-05-27 Thread David Demelier

On 05/05/2011 13:59, David Demelier wrote:

Hello,

We are trying to boot the amd64 8.2-RELEASE cd and it get stucks at the
end of:

cd0: hp DVDRAM GT20L DC05 Removable CD-ROM SCSI-0 device
cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present
- tray closed

Nothing happens, even five minutes later.. The motherboard is on a SIS
chipset, do you have any clue on this?

Cheers,



With verbose logging it seems that the kernel stops at :

ata0: reinit channel ..

Is there any hint to set to make ata(4) working ?

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Asus N70SV does not boot

2011-05-27 Thread David Demelier

On 27/05/2011 11:11, timp wrote:

Try in BIOS to set disk controller to AHCI or IDE mode.

--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/Asus-N70SV-does-not-boot-tp4372591p4431310.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


I would like to but it's an old laptop that only have IDE support :(

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Adding a devd entry for a specified uhid

2011-05-27 Thread David Demelier

Hello,

I have a USB keyboard that use uhid for multimedia keys, it works pretty 
well with usbhidaction but I need to run the command by hand each time.


Because I also have gamepad that are uhid too, I would like to get the 
vendor and product id of this keyboard uhid to match the good hid device 
with devd and do not try to run usbhidaction on the gamepad.


usbconfig need ugenx.y to deal with vendor and product id so how can I 
know the vendor and product id of my uhid device ?


markand@Groseille ~ $ usbconfig
ugen0.1: EHCI root HUB Intel at usbus0, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=SAVE
ugen1.1: EHCI root HUB Intel at usbus1, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=SAVE
ugen0.2: product 0x0020 vendor 0x8087 at usbus0, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=SAVE
ugen1.2: product 0x0020 vendor 0x8087 at usbus1, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=SAVE
ugen0.3: USB Multimedia Keyboard BTC at usbus0, cfg=0 md=HOST spd=LOW 
(1.5Mbps) pwr=ON
ugen0.4: USB Laser Mouse Logitech at usbus0, cfg=0 md=HOST spd=LOW 
(1.5Mbps) pwr=ON
ugen0.5: EDRClassone vendor 0x0a12 at usbus0, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON


markand@Groseille ~ $ dmesg | grep uhid
uhid0: BTC USB Multimedia Keyboard, class 0/0, rev 1.10/1.20, addr 3 
on usbus0


I suspect ugen0.2 to be the uhid but how to be sure?

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Adding a devd entry for a specified uhid

2011-05-27 Thread David Demelier

On 27/05/2011 20:50, Warren Block wrote:

On Fri, 27 May 2011, Warren Block wrote:


On Fri, 27 May 2011, David Demelier wrote:


Hello,

I have a USB keyboard that use uhid for multimedia keys, it works
pretty well with usbhidaction but I need to run the command by hand
each time.

Because I also have gamepad that are uhid too, I would like to get
the vendor and product id of this keyboard uhid to match the good hid
device with devd and do not try to run usbhidaction on the gamepad.

usbconfig need ugenx.y to deal with vendor and product id so how can
I know the vendor and product id of my uhid device ?


devd returns a device-name value. I thought there was an example in
the scanner section of the Handbook, but no. A rough example:

attach 20 {
device-name ugen[0-9].[0-9];
match vendor 0x0;
match product 0x;
action /usr/bin/usbhidaction $device-name ...;
};


Which should be -f $device-name...


In fact I successfully done it working with :

attach 100 {
device-name uhid[0-9]+; 



match vendor  0x046e;
match product 0x55a5;
action /usr/bin/usbhidaction -f $device-name -c 
/etc/usbhidaction.conf;

};

I saw the vendor and product id using usbconfig show_ifdrv :

ugen0.3.1: uhid0: BTC USB Multimedia Keyboard, class 0/0, rev 
1.10/1.20, addr 3


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Using csup and -i switch

2011-07-18 Thread David Demelier

Hello,

I updated all my ports recently but I have submitted a PR for 
audio/musicpd for a simple patch. I would like to update only my 
audio/musicpd on all my machines so I tried the following:


markand@Groseille ~ $ sudo csup -i audio/musicpd /etc/ports-supfile
Connected to 193.51.24.2
Updating collection ports-all/cvs
Finished successfully

According to man csup(1) -i should update only files or directory 
matching the pattern but as you can see here nothing is updated ..


If you have any clue.

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Alternative windowmanagers

2011-08-07 Thread David Demelier

On 05/08/2011 21:12, Christian Barthel wrote:

Hello,

I read on slashdot that Linus Torvalds moved from Gnome 2.3x to Xfce. It
seems that he isn't thrilled by xfce, but it's far better than Gnome3.

As a Gnome 2.3x user too, I am also a bit nervouse. Gnome 3 is a big
mistake. And there are also rumors that Gnome will be Linux only. Maybe,
we will never see Gnome3 under FreeBSD, but this is not a tragedy :)

I am not very interested in eyecandy: I want a stable and fast wm (less
memory and cpu, quick access to important places), different workspaces,
and it should be configurable with ordinary files. Of course, It must
run under FreeBSD.

I sniffed into AfterStep, fvwm2 and fluxbox (I don't want to use KDE). I
think, fluxbox is a nice wm and for my future, it will be the default wm
for me. It's also very fast and easy to configure.

Are there any other window manager worth looking?

What is your window manager?




I *love* dwm for developping, I always start three terms, one for 
vim, one for compiling and one for manual pages :) It is my best way to 
write code efficiently. I also like much its features like autotagging, 
multitagging and direct support of non-resizeable windows.


When I only use my desktop and don't want a tiled wm I'd rather use 
pekwm, it is fast and similar to fluxbox without a taskbar but with more 
features and a very easy config file syntax.


Pekwm is absolutely perfect with its autoproperties, you can do almost 
what you want with any window :)


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: A quality operating system

2011-08-22 Thread David Demelier

On 21/08/2011 03:47, Jorge Biquez wrote:

Hello.

I insist Can we know what was the OS you all decided to use ?

Thanks

Jorge Biquez

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org


I have five machine 3 are running FreeBSD 8.2 and 2 are running FreeBSD 8.1

And 2 are running amd64 :)

FreeBSD, what else?

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Please secure your FTP access

2011-09-16 Thread David Demelier

On 15/09/2011 23:46, Allen wrote:

Sorry for top posting


I have never understood why people apologise when they top post. Is your 
client mail so bad that you can't move your cursor selector under the 
last message?


For me, I have tested a lot of client mails and I was always able to 
write text under the last message. And even microsoft outlook.


:)


but can anyone send this to Computer Stupidities
? It seems to good to waste like this.  Anyone who thinks they're a
Hacker yet doesn't know how FTP works is not only funny, it's
entertainment. And also, the web site I'm speaking of, has a similar
story sent in from another reader, where they talked about back when
they were in a Web Development class once, the teacher partnered
everyone up with someone else, and so, since he had already made his own
web site, he figured he'd show it to his new partner, and said This is
my web site here and the guy, like a moron, highlighted ALL of the text
with a Mouse, and threatened to hit the Delete button on the Keyboard...

This reminds me of that quite a bit lol.

On 9/14/2011 5:57 AM, Eduardo Morras wrote:

At 21:43 13/09/2011, Sarang. wrote:

H! there,

I have seen your site and also got ftp access..

Please secure your ftp acces otherwise anyone can delete your data

Why anyone? even I am also interested in it.. please move your ass
otherwise it will cost you.

If you are not going to fix this problem then I will delete all the
files tommorrow...

Take care..


You log in as anonymous user but the user whom owns the ftp is another
one (perhaps ftp). The permises you get are r-x (thh last ones) not rwx.

HTH


Ethical but Bad Hacker...

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


No usb keyboard in single user mode

2011-11-11 Thread David Demelier

Hello,

This question may have been asked a lot of time but I have the same 
problem, my USB keyboard works well with the loader, when the system has 
successfully booted but not in the single user mode.


I don't know if this matters but when the request

When prompted Enter full pathname of shell or RETURN for /bin/sh:

comes, my keyboard didn't already show up in the kernel message, and the 
kernel still probe and attach devices after this message so the 
following output is printed :


When prompted Enter full pathname of shell or RETURN for /bin/sh:uhub3: 
6 ports with 6 removable, self powered

uhub7: 8 ports with 8 removable, self powered
ugen0.2: BTC at usbus0
ukbd0: BTC USB Multimedia Keyboard, class 0/0, rev 1.10/1.20, addr 2 
on usbus0

kbd1 at ukbd0
uhid0: BTC USB Multimedia Keyboard, class 0/0, rev 1.10/1.20, addr 2 
on usbus0

ugen1.2: vendor 0x0a12 at usbus1
ubt0: vendor 0x0a12 EDRClassone, class 224/1, rev 2.00/19.58, addr 2 
on usbus1

ugen0.3: Logitech at usbus0

So here nothing possible to do, only shutdown by power button. I have 
heard a long time ago that legacy USB must be enabled in the BIOS and it 
is in mine.


This is reproducible all the time on 8.2-RELEASE

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: No usb keyboard in single user mode

2011-11-21 Thread David Demelier

On 11/11/2011 12:02, Polytropon wrote:

On Fri, 11 Nov 2011 10:41:56 +0100, David Demelier wrote:

When prompted Enter full pathname of shell or RETURN for /bin/sh:uhub3:
6 ports with 6 removable, self powered
uhub7: 8 ports with 8 removable, self powered
ugen0.2:BTC  at usbus0
ukbd0:BTC USB Multimedia Keyboard, class 0/0, rev 1.10/1.20, addr 2
on usbus0
kbd1 at ukbd0
uhid0:BTC USB Multimedia Keyboard, class 0/0, rev 1.10/1.20, addr 2
on usbus0
ugen1.2:vendor 0x0a12  at usbus1
ubt0:vendor 0x0a12 EDRClassone, class 224/1, rev 2.00/19.58, addr 2
on usbus1
ugen0.3:Logitech  at usbus0

So here nothing possible to do, only shutdown by power button.


After the keyboard has been detected, you should be able
to enter full pathname of shell or RETURN for /bin/sh.

Possible obstacle if you do NOT have device kbdmux in
your kernel configuration!




I have
heard a long time ago that legacy USB must be enabled in the BIOS and it
is in mine.


I also had a similar experience in v7 with my old system.
After waiting for the kernel to identify ukbd0, it could
be used as intended for local logins.





I remember why I added kbdmux as module. If not this option will not be 
honored:


makeoptions UKBD_DFLT_KEYMAP=uk.iso

And then I don't have my uk.iso keymap on single user mode !

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Certain users can't start python

2011-12-12 Thread David Demelier
2011/12/12 Michael Ross g...@ross.cx:
 Hello,

 I am ... stuck.

 I've been trying to setup mercurials web frontend with apache,
 but apache won't start python.
 Not as cgi-script, not with mod_python.

 Investigating, I found this not only to be a problem with apache.

 Situation now:
 Users michael and root can run python.
 All others can't:

        Could not find platform independent libraries prefix
        Could not find platform dependent libraries exec_prefix
        Consider setting $PYTHONHOME to prefix[:exec_prefix]
        ImportError: No module named site


 For troubleshooting, I cloned michael to an new user dummy,
 i. e. I created the user, copied all .dotfiles from michael over,
 adjusted permissions.
 dummy can't start python either.


How did dou clone the account ? Does account has a full correct home
path in /etc/passwd ?

 Changing accounts with su does not help:
        dummy$ su -l michael
        dummy$ su -m michael
 *both* can run python,

        michael$ su -l dummy
        michael$ su -m dummy
 *both* can not run python.

 Setting PYTHONHOME does not help -- the libraries are found (probably,
 the error messages disappear), the ImportError remains.

 It's been a couple of long days and maybe I'm missing something obvious?
 Any input would be greatly appreciated.

 8.2 stable, python 2.7.2.
 As for python, I tried reinstalling. No change.

 TIA

 Michael
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

cheers,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Old UFS label complains on 9.0

2012-01-10 Thread David Demelier

Hello,

I've just updated my laptop from 8.2-RELEASE to 9.0-RELEASE, everything 
worked but the kernel complains about labels see :


g_dev_taste: make_dev_p() failed (gp-name=vol/root, error=17)
g_dev_taste: make_dev_p() failed (gp-name=vol/root, error=17)
g_dev_taste: make_dev_p() failed (gp-name=vol/var, error=17)
g_dev_taste: make_dev_p() failed (gp-name=vol/var, error=17)
g_dev_taste: make_dev_p() failed (gp-name=vol/tmp, error=17)
g_dev_taste: make_dev_p() failed (gp-name=vol/tmp, error=17)

The labels works because my fstab relies on them.

How can I fix that?

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Extract photo from digital camera that is not USB mass storage device

2012-01-18 Thread David Demelier

Hello,

I've bought a new digital camera Canon IXUS 220, it works well (but 
nothing to do with FreeBSD). But I've been very sad when I saw that I 
can't set it to mass storage device


The device can only be used as PTP device I guess, that's why I don't 
have any da* device when I connect it.


ugen7.2: Canon Inc. at usbus7

What can I do to copy photo without extracting the SD card each time, 
does gphoto (or something similar) support this kind of generic device?


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Extract photo from digital camera that is not USB mass storage device

2012-01-19 Thread David Demelier

On 19/01/2012 09:59, Polytropon wrote:

On Thu, 19 Jan 2012 08:27:38 +0100, David Demelier wrote:

Hello,

I've bought a new digital camera Canon IXUS 220, it works well (but
nothing to do with FreeBSD). But I've been very sad when I saw that I
can't set it to mass storage device

The device can only be used as PTP device I guess, that's why I don't
have any da* device when I connect it.

ugen7.2:Canon Inc.  at usbus7

What can I do to copy photo without extracting the SD card each time,
does gphoto (or something similar) support this kind of generic device?


If the camera supports PTP, use a gphoto2 (CLI program)
or a GUI tool that uses it (e. g. Gtkam for Gnome,
Digikam for KDE).

You'll find them in the ports collection.

Also check the menu of the camera if it can be switched
between PTP mode and DA mode. I have a Canon S3 IS myself
and it can do both modes, but I prefer extracting the
memory card and using it with the internal reader of the
computer instead of messing with the USB cable. :-)

In the past, I had a camera that worked very well with
gphoto2. It did identify to the system as ugen (USB
generic), no further messages appeared.

See man gphoto2 on how to scan for devices and how to
copy (and maybe delete) pictures from the camera. You
can also automate this process (using devd) or use a
GUI solution for it. I've been using Gtkam in the past
for the task of selectively dealing with pictures.




Thanks a lot, I used gphoto, at the beginning it didn't found the device 
because of lack of permissions. I've just added some rules in devfs to 
use it as normal user and it works !


add path 'usb/*' mode 0660 group operator

thanks for gtkam, it looks great :)

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: pkg_rmleaves in FreeBSD 9

2012-02-08 Thread David Demelier

On 08/02/2012 04:55, Kevin Zheng wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I often use pkg_rmleaves(1) to uninstall unused programs on FreeBSD.
I'm in the process of test-driving a FreeBSD 9 system on a virtual
machine. I've noticed that pkg_rmleaves doesn't take up the entire
width of the window anymore.

Quite frankly, I like it when pkg_rmleaves takes up the entire window,
so is there any nice way to get it (or dialog) to take the entire screen?

Thanks,
Kevin Zheng



For me, it takes the entire screen, I advise you to try out 
ports-mgmt/pkg_cleanup it is exactly more up to date as pkg_rmleaves is 
completely outdated.


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Dualboot with Windows 7

2012-03-18 Thread David Demelier

Hello,

I try to create a dualboot with Windows 7, I set up partitions like that :

ada0s1 - NTFS (windows recovery)
ada0s2 - NTFS (windows main partition)
ada0s3 - BSD
ada0s3a - freebsd-swap (3G)
ada0s3b - freebsd-ufs / (remaining space from drive)

And then I let the installer complete the step, because FreeBSD didn't 
let you (since 9.0) choose between the boot manager nothing was 
installed and the boot directly goes to Windows 7.


I installed EasyBCD to add a new entry to FreeBSD on the third 
partition, but when I choose the FreeBSD entry nothing happens, only the 
_ character blinking.


Thus I tried bsdlabel -B ada0s3 from the FreeBSD iso shell but it didn't 
solve. What can I do to boot FreeBSD now?


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Dualboot with Windows 7

2012-03-19 Thread David Demelier

On 19/03/2012 07:28, Polytropon wrote:

On Sun, 18 Mar 2012 23:05:58 +0100, David Demelier wrote:

Hello,

I try to create a dualboot with Windows 7, I set up partitions like that :

ada0s1 -  NTFS (windows recovery)
ada0s2 -  NTFS (windows main partition)
ada0s3 -  BSD
ada0s3a -  freebsd-swap (3G)
ada0s3b -  freebsd-ufs / (remaining space from drive)


Erm... according to traditional partitioning, isn't
the 'a' partition reserved for booting, 'b' for swap?
I see you have installed everything into one / partition
which technically is no problem and should work, but
it's not on the boot partition.




You're right, but I made a mistake while writing, my a partition is / 
and b is swap.



And then I let the installer complete the step, because FreeBSD didn't
let you (since 9.0) choose between the boot manager nothing was
installed and the boot directly goes to Windows 7.


You need to install all the required stages for booting.
If I understand the process correctly, the slice 's3' needs
code to branch to the boot partition (which is supposed
to be the 'a' partition), and the boot selector needs to
be accessed from the beginning of the disk - you said
you're using EasyBCD for this which is okay.




I followed the part 13.3.2 from 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/boot-blocks.html


I think this should be enough, isn't it? it says bsdlabel -B will 
replace the boot1 and boot2 stage so all of them are installed.


Now the question is how to branch the a partition as the boot partition ?




I installed EasyBCD to add a new entry to FreeBSD on the third
partition, but when I choose the FreeBSD entry nothing happens, only the
_ character blinking.


I assume missing boot characteristics as described above.
Please review your installation process and maybe re-do it.
In worst case, drop to command line for using the traditional
toolset to apply the proper slicing and partitioning.
According to man fdisk and man bsdlabel, you should be
able to write the required boot characteristics to allow
the correct boot process.




Thus I tried bsdlabel -B ada0s3 from the FreeBSD iso shell but it didn't
solve. What can I do to boot FreeBSD now?


As this part is done, I suppose incorrect partitioning.

2.6.5 Creating Partitions Using Disklabel
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-steps.html

Refer to table 2-2: Partition Layout for First Disk.

Boot manager and MBR handling are also covered in this chapter.






--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Dualboot with Windows 7

2012-03-19 Thread David Demelier

On 19/03/2012 17:53, Leslie Jensen wrote:



2012-03-19 08:53, Da Rock skrev:

On 03/19/12 17:49, Polytropon wrote:

On Mon, 19 Mar 2012 08:29:22 +0100, David Demelier wrote:

On 19/03/2012 07:28, Polytropon wrote:

On Sun, 18 Mar 2012 23:05:58 +0100, David Demelier wrote:

Hello,

I try to create a dualboot with Windows 7, I set up partitions like
that :

ada0s1 - NTFS (windows recovery)
ada0s2 - NTFS (windows main partition)
ada0s3 - BSD
ada0s3a - freebsd-swap (3G)
ada0s3b - freebsd-ufs / (remaining space from drive)

Erm... according to traditional partitioning, isn't
the 'a' partition reserved for booting, 'b' for swap?
I see you have installed everything into one / partition
which technically is no problem and should work, but
it's not on the boot partition.



You're right, but I made a mistake while writing, my a partition is /
and b is swap.

Okay.




And then I let the installer complete the step, because FreeBSD
didn't
let you (since 9.0) choose between the boot manager nothing was
installed and the boot directly goes to Windows 7.

You need to install all the required stages for booting.
If I understand the process correctly, the slice 's3' needs
code to branch to the boot partition (which is supposed
to be the 'a' partition), and the boot selector needs to
be accessed from the beginning of the disk - you said
you're using EasyBCD for this which is okay.



I followed the part 13.3.2 from
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/boot-blocks.html



I think this should be enough, isn't it? it says bsdlabel -B will
replace the boot1 and boot2 stage so all of them are installed.

Looks correct.




Now the question is how to branch the a partition as the boot
partition ?

No need. As soon as the branching from ada0-start - ada0s3
has been processed, the 'a' partition ada0s3a will be accessed
as it is the boot partition. It will then continue stage 1 and 2
and finally access the loader, which will load the kernel.

In 13.3.2 it is explained as follows:

They [Stage One, /boot/boot1, and Stage Two, /boot/boot2]
are located outside file systems, in the first track of
the boot slice, starting with the first sector. This is
where boot0, or any other boot manager, expects to find
a program to run which will continue the boot process.
The number of sectors used is easily determined from the
size of /boot/boot.

In your case, the boot slice (for FreeBSD) is ada0s3 where the
boot manager EasyBCD will branch to.

Getting just a cursor (as you described) makes it hard to
identify where the process hangs. If EasyBCD is the last
thing you see, I assume the FreeBSD boot process isn't even
initiated. Every part of it (MBR boot manager, boot0, boot1,
boot2 and loader) would issue some kind of text when accessed.

I couldn't say exactly how to do this now (been a long time), but
you should be able to boot using the Windows loader (this may have
changed in recent editions. Don't think so though). This will give you a
choice between Windows or FreeBSD and defaults, timers, etc during boot.
Used to be able to do it under system properties I believe; run a google
search should provide some examples.



Using EasyBCD you must ensure that your Windows partition has the boot
flag set.

/Leslie










___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org


I reinstalled using the auto scheme, by adding a partition now it works. 
Thanks for your answers!


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


No surround sound with Creative SB Live! card

2012-06-14 Thread David Demelier

Hello,

I have an old SB Live! card with a 5.1 speaker set, but i can't get 
sound from center and rear speakers with mplayer.


I'm using the snd_emu10kx driver and when I try to play a DVD I get 
sound only through the front speakers (and LFE) like a 2.1


Adding -channels 6 to the mplayer args does not help.

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: No surround sound with Creative SB Live! card

2012-06-15 Thread David Demelier

On 14/06/2012 23:35, Chris Hill wrote:

On Thu, 14 Jun 2012, David Demelier wrote:


I have an old SB Live! card with a 5.1 speaker set, but i can't get
sound from center and rear speakers with mplayer.

I'm using the snd_emu10kx driver and when I try to play a DVD I get
sound only through the front speakers (and LFE) like a 2.1

Adding -channels 6 to the mplayer args does not help.


Does the DVD source material actually have 5.1 sound? Silly question, I
know, but it has to be asked.



Yes it has I think, Dolby digitial is written on it, but it also works 
on Linux and Windows.



You may also want to pose this question to multimedia@




I did, but no one answered :(.

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: No surround sound with Creative SB Live! card

2012-06-15 Thread David Demelier

On 15/06/2012 05:43, Edward M wrote:

On 06/14/2012 09:03 AM, David Demelier wrote:

I have an old SB Live! card with a 5.1 speaker set, but i can't get
sound from center and rear speakers with mplayer.

I'm using the snd_emu10kx driver and when I try to play a DVD I get
sound only through the front speakers (and LFE) like a 2.1

Adding -channels 6 to the mplayer args does not help.

Cheers,


Sounds like the DVD surround audio is encoded in AC-3 Dolby Digital or
DTS. So a decorder is needed.



That's what mplayer says:

==
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 6 ch, s16le, 448.0 kbit/9.72% (ratio: 56000-576000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==
AO: [oss] 48000Hz 6ch s16le (2 bytes per sample)

What do you mean by a decoder is needed?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: No surround sound with Creative SB Live! card

2012-06-18 Thread David Demelier

On 15/06/2012 13:25, Bernt Hansson wrote:

On 2012-06-15 10:06, David Demelier wrote:

On 15/06/2012 05:43, Edward M wrote:

On 06/14/2012 09:03 AM, David Demelier wrote:

I have an old SB Live! card with a 5.1 speaker set, but i can't get
sound from center and rear speakers with mplayer.

I'm using the snd_emu10kx driver and when I try to play a DVD I get
sound only through the front speakers (and LFE) like a 2.1

Adding -channels 6 to the mplayer args does not help.

Cheers,


Sounds like the DVD surround audio is encoded in AC-3 Dolby Digital or
DTS. So a decorder is needed.



That's what mplayer says:

==

Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 6 ch, s16le, 448.0 kbit/9.72% (ratio: 56000-576000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==

AO: [oss] 48000Hz 6ch s16le (2 bytes per sample)

What do you mean by a decoder is needed?


Have you tried vlc or xine?


Seen in multimedia/mplayer/Makefile.shared:

CONFIGURE_ARGS= --cc=${CC} \
[..snip..]
--disable-liba52 \

That's probably why mplayer won't play surround sound, I'll try with VLC 
tonight.


Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: No surround sound with Creative SB Live! card

2012-06-18 Thread David Demelier

On 15/06/2012 13:25, Bernt Hansson wrote:

On 2012-06-15 10:06, David Demelier wrote:

On 15/06/2012 05:43, Edward M wrote:

On 06/14/2012 09:03 AM, David Demelier wrote:

I have an old SB Live! card with a 5.1 speaker set, but i can't get
sound from center and rear speakers with mplayer.

I'm using the snd_emu10kx driver and when I try to play a DVD I get
sound only through the front speakers (and LFE) like a 2.1

Adding -channels 6 to the mplayer args does not help.

Cheers,


Sounds like the DVD surround audio is encoded in AC-3 Dolby Digital or
DTS. So a decorder is needed.



That's what mplayer says:

==

Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 6 ch, s16le, 448.0 kbit/9.72% (ratio: 56000-576000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==

AO: [oss] 48000Hz 6ch s16le (2 bytes per sample)

What do you mean by a decoder is needed?


Have you tried vlc or xine?


It does not work with VLC too, do you need to tweak some settings?

Cheers,

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: No surround sound with Creative SB Live! card

2012-06-21 Thread David Demelier

On 21/06/2012 05:55, Bernt Hansson wrote:

2012-06-18 20:27, David Demelier skrev:

On 15/06/2012 13:25, Bernt Hansson wrote:

On 2012-06-15 10:06, David Demelier wrote:

On 15/06/2012 05:43, Edward M wrote:

On 06/14/2012 09:03 AM, David Demelier wrote:

I have an old SB Live! card with a 5.1 speaker set, but i can't get
sound from center and rear speakers with mplayer.

I'm using the snd_emu10kx driver and when I try to play a DVD I get
sound only through the front speakers (and LFE) like a 2.1

Adding -channels 6 to the mplayer args does not help.

Cheers,


Sounds like the DVD surround audio is encoded in AC-3 Dolby Digital or
DTS. So a decorder is needed.



That's what mplayer says:

==



Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 6 ch, s16le, 448.0 kbit/9.72% (ratio: 56000-576000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==



AO: [oss] 48000Hz 6ch s16le (2 bytes per sample)

What do you mean by a decoder is needed?


Have you tried vlc or xine?


It does not work with VLC too, do you need to tweak some settings?


Try $ vlc filename

I've tried a file that gave this error

[0x2bb4b43c] main decoder error: no suitable decoder module for fourcc
`mp4v'. VLC probably does not support this sound or video format.


There is just this error:

[0x8373b4e70] xcb_xv generic error: no available XVideo adaptor

But this is due to my modern graphic card (radeon 5670)

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: make buildkernel pre-build too long

2010-09-21 Thread David DEMELIER
2010/9/21 Alexander Best arun...@freebsd.org:
 On Fri Sep 17 10, David DEMELIER wrote:
 2010/9/17 Alexander Best arun...@freebsd.org:
  On Thu Sep 16 10, David DEMELIER wrote:
  Hi there,
 
  I can't understand why this part of make buildkernel is so long on my
  amd64 machine (8.1-R)
 
  make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES |  MKDEP_CPP=cc -E
  CC=cc xargs mkdep -a -f .newdep -O2 -frename-registers -pipe
  -fno-strict-aliasing  -std=c99  -Wall -Wredundant-decls
  -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
  -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign
  -fformat-extensions -nostdinc  -I. -I/usr/src/sys
  -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
  -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath
  -I/usr/src/sys/dev/ath/ath_hal -I/usr/src/sys/contrib/ngatm
  -I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD
  -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs
  -I/usr/src/sys/contrib/opensolaris/compat -I/usr/src/sys/dev/cxgb
  -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
  -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param
  large-function-growth=1000  -fno-omit-frame-pointer -mcmodel=kernel
  -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx
  -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables
  -ffreestanding -fstack-protector
 
  This command takes around 5-6 minutes before continuing, on my i386
  machine (which is really old) it only takes about 20 seconds. The
  kernel configs are almost the same for both machines.
 
  are there any differences in /etc/make.conf?
 
  cheers.
  alex
 
 
  Do you have any idea?
 
  Kind regards,
 
  --
  Demelier David
 
  --
  a13x
 

 No, except the KERNCONF entry it's exactly the same :

 hmmmstrange. could you post the ouput of `make -VCFLAGS -VCOPTFLAGS` on
 both your machines, please?

 cheers.
 alex


 # General settings.
 KERNCONF=Melon
 MASTER_SORT?= .fr .uk

 # Portconf.
 .if !empty(.CURDIR:M/usr/ports*)  exists(/usr/local/libexec/portconf)
 _PORTCONF!=/usr/local/libexec/portconf
 .for i in ${_PORTCONF:S/|/ /g}
 ${i:S/%/ /g}
 .endfor
 .endif

 # Perl.
 PERL_VERSION=5.10.1

 # No need modules.
 NO_MODULES=yes

 # Specify other directories.
 WRKDIRPREFIX=   /usr/obj
 DISTDIR=        /usr/distfiles

 --
 Demelier David

 --
 a13x


-O2 -pipe

I think the problem is the amd64 architecture. When I buildkernel
using TARGET_ARCH=i386 it takes only one minute or even less, it's
only native target (amd64) which is long.

Kind regards,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Little question about device driver name

2010-09-24 Thread David DEMELIER
Hi folks,

I just wonder why if_bridge(4) is prefixed by if_ for device name.
Every other device name like lagg(4), gif(4) are not prefixed with
this same one.

Is there any reason that bridge is prefixed with it ? (I don't know if
there is other device like that, but what I saw in conf/NOTES seems
not)

Cheers,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Location of sensors

2010-09-29 Thread David Demelier

Hello,

I just wonder how to know the location of the sensors, I got a lot of 
them on my HP Probook laptop :


hw.acpi.thermal.tz0.temperature: 87.0C
hw.acpi.thermal.tz1.temperature: 47.0C
hw.acpi.thermal.tz2.temperature: 72.0C
hw.acpi.thermal.tz3.temperature: 59.0C
hw.acpi.thermal.tz4.temperature: 26.4C
hw.acpi.thermal.tz5.temperature: 55.0C

acpi_tz0: Thermal Zone on acpi0
acpi_tz1: Thermal Zone on acpi0
acpi_tz2: Thermal Zone on acpi0
acpi_tz3: Thermal Zone on acpi0
acpi_tz4: Thermal Zone on acpi0
acpi_tz5: Thermal Zone on acpi0

For example I know that there is two sensors on the CPU unit, and one 
one on the Wireless chipset but which one?


If you have any ideas,

Kind regards,
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ACPI battery issues

2010-10-03 Thread David DEMELIER
2010/10/2 Eitan Adler li...@eitanadler.com:
 On Sat, Oct 2, 2010 at 4:01 PM,  four.harris...@googlemail.com wrote:
 I get the same messages with the stock acpi on a Lenovo S10e. Someone on the 
 acpi list (who's name I forget) wrote a patch which removes the error. If 
 you think it might help I'll root it out and forward it on.


 I'll be happy to take a look at the patch and see if it solves my
 problem. does the patch just remove the error message or solve a
 specific problem that might be causing the issue?





 ...
 I see
 ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for
 [EmbeddedControl] (20100331/evregion-588)
 ACPI Error (psparse-0633): Method parse/execution failed
 [\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc6adba60),
 AE_NO_HARDWARE_RESPONSE

 repeatedly in dmesg

 sysctl's relating to battery information is also slow:
 % time sysctl hw.acpi.battery.state
 hw.acpi.battery.state: 7
 sysctl hw.acpi.battery.state  0.00s user 2.18s system 72% cpu 3.006 total

 % time sysctl hw.acpi.battery
 hw.acpi.battery.life: -1
 hw.acpi.battery.time: -1
 hw.acpi.battery.state: 7
 hw.acpi.battery.units: 1
 hw.acpi.battery.info_expire: 5
 sysctl hw.acpi.battery  0.00s user 6.58s system 67% cpu 9.779 total

 also note that the life and time are both negative one.

 This is on a Lenovo G530 laptop.
 --

I always heard that Lenovo/IBM has a great support for open source
systems, it seems not. Sad.

By the way, you should try to update the bios to the last version, it
may helps sometimes.

Cheers,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Little question about device driver name

2010-10-03 Thread David DEMELIER
2010/9/24 Bob Hall rjh...@gmail.com:
 On Fri, Sep 24, 2010 at 07:04:06PM +0200, David DEMELIER wrote:
 Hi folks,

 I just wonder why if_bridge(4) is prefixed by if_ for device name.
 Every other device name like lagg(4), gif(4) are not prefixed with
 this same one.

 if_bridge was based on bridge. I assume that when the updated if_bridge
 was introduced, the earlier bridge was still available, so the author
 needed some way to distinguish his new module from the earlier module.

 Type man bridge and check the Authors section.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


And is there driver bridge still available ?

./boot/powerpc/ofw/Makefile:# 64-bit bridge extensions
./boot/powerpc/ofw/Makefile:CFLAGS+= -Wa,-mppc64bridge
./modules/Makefile: bridgestp \
./modules/Makefile: if_bridge \
./modules/bridgestp/Makefile:# $FreeBSD:
src/sys/modules/bridgestp/Makefile,v 1.3.2.1 2009/08/03 08:13:06
kensmith Exp $
./modules/bridgestp/Makefile:KMOD=  bridgestp
./modules/bridgestp/Makefile:SRCS=  bridgestp.c
./modules/if_bridge/Makefile:# $FreeBSD:
src/sys/modules/if_bridge/Makefile,v 1.6.10.1 2009/08/03 08:13:06
kensmith Exp $
./modules/if_bridge/Makefile:KMOD=  if_bridge
./modules/if_bridge/Makefile:SRCS=  if_bridge.c opt_inet.h opt_inet6.h 
opt_carp.h
./modules/netgraph/Makefile:bridge \
./modules/netgraph/bridge/Makefile:# $FreeBSD:
src/sys/modules/netgraph/bridge/Makefile,v 1.3.36.1 2009/08/03
08:13:06 kensmith Exp $
./modules/netgraph/bridge/Makefile:KMOD=ng_bridge
./modules/netgraph/bridge/Makefile:SRCS=ng_bridge.c

I found netgraph/bridge but it's not the same thing.

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Auvisio USB remote

2010-10-24 Thread David DEMELIER
Hello folks;

I have a USB remote
(http://www.ortek.com/upimg/200732111364392163.jpg). It's an auvisio
VRC-1100 Ro, there is no much information on it. It's recognized as a
simple keyboard and mouse.

The buttons sends some keypress events like p enter and numbers,
but there is also multimedia keys, these don't send keypress events so
I guess this is send via the HID device but I don't know how I can use
them on FreeBSD.

This is the message when I plug the remote controller.
ugen2.2: vendor 0x05a4 at usbus2
ukbd0: vendor 0x05a4 product 0x9881, class 0/0, rev 1.10/1.10, addr
2 on usbus2
kbd2 at ukbd0
ums1: vendor 0x05a4 product 0x9881, class 0/0, rev 1.10/1.10, addr 2 on usbus2
ums1: 5 buttons and [XYZ] coordinates ID=1

What can I try for the multimedia keys ?

Kind regards,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Auvisio USB remote

2010-10-24 Thread David DEMELIER
2010/10/24 Roland Smith rsm...@xs4all.nl:
 On Sun, Oct 24, 2010 at 10:36:16AM +0200, David DEMELIER wrote:
 Hello folks;

 I have a USB remote
 (http://www.ortek.com/upimg/200732111364392163.jpg). It's an auvisio
 VRC-1100 Ro, there is no much information on it. It's recognized as a
 simple keyboard and mouse.

 The buttons sends some keypress events like p enter and numbers,
 but there is also multimedia keys, these don't send keypress events so
 I guess this is send via the HID device but I don't know how I can use
 them on FreeBSD.

 This is the message when I plug the remote controller.
 ugen2.2: vendor 0x05a4 at usbus2
 ukbd0: vendor 0x05a4 product 0x9881, class 0/0, rev 1.10/1.10, addr
 2 on usbus2
 kbd2 at ukbd0
 ums1: vendor 0x05a4 product 0x9881, class 0/0, rev 1.10/1.10, addr 2 on 
 usbus2
 ums1: 5 buttons and [XYZ] coordinates ID=1

 What can I try for the multimedia keys ?

 Try using usbhidctl(1) to see if the multimedia keys generate data. In the 
 file
 /usr/share/misc/usb_hid_usages you can find some possible actions.

 If you have found the values that the multimedia keys give, you can use
 usbhidaction(1) to execute commands when certain values appear on a HID.

 Roland
 --
 R.F.Smith                                   http://www.xs4all.nl/~rsmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


Thanks for your answer, I tried usbhidctl(1) like this :

mark...@abricot ~ $ sudo usbhidctl -f /dev/ugen2.2 -a
usbhidctl: USB_GET_REPORT_DESC

Is this behavior expected?

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Auvisio USB remote

2010-10-24 Thread David DEMELIER
2010/10/24 Roland Smith rsm...@xs4all.nl:
 On Sun, Oct 24, 2010 at 10:12:34PM +0200, David DEMELIER wrote:
  What can I try for the multimedia keys ?
 
  Try using usbhidctl(1) to see if the multimedia keys generate data. In the 
  file
  /usr/share/misc/usb_hid_usages you can find some possible actions.
 
  If you have found the values that the multimedia keys give, you can use
  usbhidaction(1) to execute commands when certain values appear on a HID.

 Thanks for your answer, I tried usbhidctl(1) like this :

 mark...@abricot ~ $ sudo usbhidctl -f /dev/ugen2.2 -a
 usbhidctl: USB_GET_REPORT_DESC

 Is this behavior expected?

 For a hub it is.

 What do you find in /var/run/dmesg.boot for ugen2.2?

 Roland
 --
 R.F.Smith                                   http://www.xs4all.nl/~rsmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


This :

mark...@abricot ~ $ grep -i ugen2.2 /var/run/dmesg.boot
ugen2.2: vendor 0x05a4 at usbus2

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Auvisio USB remote

2010-10-24 Thread David DEMELIER
2010/10/24 Roland Smith rsm...@xs4all.nl:
 On Sun, Oct 24, 2010 at 10:36:49PM +0200, David DEMELIER wrote:
 2010/10/24 Roland Smith rsm...@xs4all.nl:
  On Sun, Oct 24, 2010 at 10:12:34PM +0200, David DEMELIER wrote:
   What can I try for the multimedia keys ?
  
   Try using usbhidctl(1) to see if the multimedia keys generate data. In 
   the file
   /usr/share/misc/usb_hid_usages you can find some possible actions.
  
   If you have found the values that the multimedia keys give, you can use
   usbhidaction(1) to execute commands when certain values appear on a HID.
 
  Thanks for your answer, I tried usbhidctl(1) like this :
 
  mark...@abricot ~ $ sudo usbhidctl -f /dev/ugen2.2 -a
  usbhidctl: USB_GET_REPORT_DESC
 
  Is this behavior expected?
 
  For a hub it is.
 
  What do you find in /var/run/dmesg.boot for ugen2.2?
 
  Roland
 

 This :

 mark...@abricot ~ $ grep -i ugen2.2 /var/run/dmesg.boot
 ugen2.2: vendor 0x05a4 at usbus2

 What is the line after it (try adding -A 1)?

 Roland
 --
 R.F.Smith                                   http://www.xs4all.nl/~rsmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


ugen2.2: vendor 0x05a4 at usbus2
ukbd0: vendor 0x05a4 product 0x9881, class 0/0, rev 1.10/1.10, addr
2 on usbus2
kbd2 at ukbd0

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Auvisio USB remote

2010-10-24 Thread David DEMELIER
2010/10/24 Roland Smith rsm...@xs4all.nl:
 On Sun, Oct 24, 2010 at 11:01:25PM +0200, David DEMELIER wrote:
 2010/10/24 Roland Smith rsm...@xs4all.nl:
  On Sun, Oct 24, 2010 at 10:36:49PM +0200, David DEMELIER wrote:
  2010/10/24 Roland Smith rsm...@xs4all.nl:
   On Sun, Oct 24, 2010 at 10:12:34PM +0200, David DEMELIER wrote:
What can I try for the multimedia keys ?
   
Try using usbhidctl(1) to see if the multimedia keys generate data. 
In the file
/usr/share/misc/usb_hid_usages you can find some possible actions.
   
If you have found the values that the multimedia keys give, you can 
use
usbhidaction(1) to execute commands when certain values appear on a 
HID.
  
   Thanks for your answer, I tried usbhidctl(1) like this :
  
   mark...@abricot ~ $ sudo usbhidctl -f /dev/ugen2.2 -a
   usbhidctl: USB_GET_REPORT_DESC
  
   Is this behavior expected?
  
   For a hub it is.
  
   What do you find in /var/run/dmesg.boot for ugen2.2?
  
   Roland
  
 
  This :
 
  mark...@abricot ~ $ grep -i ugen2.2 /var/run/dmesg.boot
  ugen2.2: vendor 0x05a4 at usbus2
 
  What is the line after it (try adding -A 1)?

 ugen2.2: vendor 0x05a4 at usbus2
 ukbd0: vendor 0x05a4 product 0x9881, class 0/0, rev 1.10/1.10, addr
 2 on usbus2
 kbd2 at ukbd0

 Try adding the -l switch and the name Keyboard to the usbhidctl invocation.

 Roland
 --
 R.F.Smith                                   http://www.xs4all.nl/~rsmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


mark...@abricot ~ $ sudo usbhidctl -f /dev/ugen2.2 -l -v Keyboard
usbhidctl: USB_GET_REPORT_DESC

I think this remote needs some quirks or a full driver for it. :-(

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


No GPT on an usb key

2010-10-28 Thread David DEMELIER
Hello,

I'm trying to put on my USB mass storage device a GPT scheme
partitions. But gpart still add them as slices :

To be sure to remove the MBR before I dd'ed it

$ sudo dd if=/dev/zero of=/dev/da0 bs=512 count=1
1+0 records in
1+0 records out
512 bytes transferred in 0.003369 secs (151970 bytes/sec)
$ sudo gpart create -s GPT da0
da0 created
$ gpart show da0
=  34  15771653  da0  GPT  (7.5G)
34  15771653   - free -  (7.5G)

$ sudo gpart add -b 34 -t freebsd da0
da0s1 added

Why it is still s1? In my kernel config I have this :

device  crypto
options GEOM_ELI
options GEOM_PART_GPT
options GEOM_LABEL
options GEOM_VOL

Do I need something that I forgot?

Kind regards,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mount_msdosfs -L ... [odd behaviour ?]

2010-10-29 Thread David DEMELIER
2010/10/29 Adam Vande More amvandem...@gmail.com:
 On Fri, Oct 29, 2010 at 7:53 AM, dan gl...@live.com wrote:

 On 10/29/10 13:22, Adam Vande More wrote:

 On Fri, Oct 29, 2010 at 6:13 AM, dangl...@live.com  wrote:

  Thank you for your research and prompt response. The module was
 available.
 I tried both: kldload in command line and adding it in loader.conf.

 Note. In case the module has not been been loaded,as a user, here, one
 gets
 2 messages
 mount_msdosfs: cannot find or load msdosfs_iconv kernel module
 AND

 mount_msdosfs: msdosfs_iconv: Operation not permitted

 I wonder what Operation is not permitted as a user and what rights the
 user
 needs.



 sysctl vfs.usermount=1

 Although it doesn't seem correct that you can mount that FS if it's
 already
 been mounted previously by root when that sysctl is at 0.


 Hello

 vfs.usermount is already set. In fact, I can readily mount the filesystem
 if I do not specify -L 

 I did mount and then soon unmount the filesystem as root with -L 


 I see now.  The loading of the kernel module is not permitted as I think the
 mount command attempts to load it if necessary.  I'm not aware of any method
 of granting access to user which would allow them to load/unload kernel
 modules.  Only root level privs can do that.


 --
 Adam Vande More
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


I have the same trouble, I usually mount device by user with
vfs.usermount=1 but for libiconv I need root...

--
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Portable Makefile(s)

2010-10-31 Thread David DEMELIER
Hello,

I'm working on many projects, and writing makefile is really painful.
I love the BSD Makefile syntax obviously, but I also love that people
using Linux could run make to build my projects too. And using BSD
makefile syntax disallow this.

Reducing the makefile to the minimal makes them portable, but then you
canno't use loops, conditionnals, and this is getting my nerves.

What could I do to write Makefile compatible on every operating
systems ? I'm thinking about Cmake but I hate the syntax, also for
dmake...

Kind regards,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Why do you use a devil as a mascot?

2010-11-13 Thread David DEMELIER
2010/11/12 José Silveira jmlsilve...@gmail.com:
 Why do you use a devil as a mascot?

 For me it is nonsense... It makes Christians, Jwishes and Muslins run away!

 José Silveira
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


I never thought this kind of mail could spawn 70 answers in only two
days. It takes useless storage for nothing. You are wasting your time
answering this imho :-).

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


How long laptop battery should live ?

2010-11-23 Thread David DEMELIER
Hello

I just realized that my HP laptop lost the half battery capacity. Take a look :

mark...@melon ~ $ acpiconf -i 0
Design capacity:4400 mAh
Last full capacity: 2132 mAh
Technology: secondary (rechargeable)
Design voltage: 14400 mV
Capacity (warn):200 mAh
Capacity (low): 100 mAh
Low/warn granularity:   100 mAh
Warn/full granularity:  100 mAh
Model number:   Primary
Serial number:  02109 2009/08/11
Type:   LIon
OEM info:   Hewlett-Packard
State:  charging
Remaining capacity: 0%
Remaining time: unknown
Present rate:   3061 mA
Voltage:15751 mV

Design capacity:4400 mAh
Last full capacity: 2132 mAh

I'm guessing if this should be, the laptop has only about 8 months and
I don't use it much on battery, only around one day per week and not
until the battery is empty. If I remember correctly my old laptop
didn't lost so much of capacity in a few months like that.

My question is : how long a battery should live ? is anything could
bring down the battery sooner ?

I hope the next battery wont be too much expensive and will live more..

Cheers,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


trying to sysctl(3) a char value

2010-11-24 Thread David DEMELIER
Hello,

Since I cannot adjust the brightness on my HP Probook because it sucks
I'm writing a small script that can be use instead. I need to sysctl
the following sysctl variables :

hw.acpi.video.lcd0.brightness
hw.acpi.video.lcd0.levels

the -brightness one is easy since it's an integer, but the levels is
possibly a char :

mark...@melon ~ $ sysctl hw.acpi.video.lcd0.brightness
hw.acpi.video.lcd0.brightness: 90
mark...@melon ~ $ sysctl hw.acpi.video.lcd0.levels
hw.acpi.video.lcd0.levels: 100 50 0 5 10 15 20 25 30 33 36 40 43 46 50
55 60 65 70 75 80 83 86 90 93 96 100

How can I store the content of hw.acpi.video.lcd0.levels? This small
code doesn't work :

#include stdio.h
#include stdlib.h
#include sys/types.h
#include sys/sysctl.h

int
main(int argc, char *argv[])
{
char buf[128];
size_t len;

len = sizeof (buf);

if (sysctlbyname(hw.acpi.video.lcd0.levels, buf, len, NULL, 0) == 
-1) {
perror(sysctl);
return -1;
}

printf(levels = %s\n, buf);
}

mark...@melon ~ $ ./a.out
levels = d

Kind regards,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: trying to sysctl(3) a char value

2010-11-24 Thread David DEMELIER
2010/11/24 Dan Nelson dnel...@allantgroup.com:
 In the last episode (Nov 24), David DEMELIER said:
 Since I cannot adjust the brightness on my HP Probook because it sucks
 I'm writing a small script that can be use instead. I need to sysctl
 the following sysctl variables :

 hw.acpi.video.lcd0.brightness
 hw.acpi.video.lcd0.levels

 the -brightness one is easy since it's an integer, but the levels is
 possibly a char :

 mark...@melon ~ $ sysctl hw.acpi.video.lcd0.brightness
 hw.acpi.video.lcd0.brightness: 90
 mark...@melon ~ $ sysctl hw.acpi.video.lcd0.levels
 hw.acpi.video.lcd0.levels: 100 50 0 5 10 15 20 25 30 33 36 40 43 46 50 55 60 
 65 70 75 80 83 86 90 93 96 100

 Looking at the source, that sysctl definition is CTLTYPE_OPAQUE with a
 display format of I, which means that it's just an array of integers.
 Print each one in a loop.  You can also take a look at
 /usr/src/sbin/sysctl/sysctl.c to see how it printed the numbers.

 --
        Dan Nelson
        dnel...@allantgroup.com


Thank you, it works !

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How long laptop battery should live ?

2010-11-24 Thread David DEMELIER
Hello,

Thanks for all your answers, I guess my battery is getting on its end of life..

After running 30 minutes on battery, the percent is still 100% while
the remaining time is slowly decreasing.. Aaaah buying a new battery
costs around $134 !

I think I could live a few months before buying a new one but it sucks :-/

Cheers,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How long laptop battery should live ?

2010-11-25 Thread David DEMELIER
2010/11/24 Adam Vande More amvandem...@gmail.com:
 On Wed, Nov 24, 2010 at 2:42 PM, David DEMELIER demelier.da...@gmail.com
 wrote:

 Thanks for all your answers, I guess my battery is getting on its end of
 life..

 After running 30 minutes on battery, the percent is still 100% while
 the remaining time is slowly decreasing.. Aaaah buying a new battery
 costs around $134 !

 I think I could live a few months before buying a new one but it sucks :-/

 One thing I forgot to mention is that this might be a good case for an SSD
 drive.  I installed one in my old laptop w/ old worn battery and system
 performance and battery life increased significantly all for less than your
 new battery price.  There's a lot of advantages to SSD's in a laptop.


 --
 Adam Vande More


Yes, I would like to have SSD in my laptop but it's really expensive
for the moment. But I completely agree, there is so much advantages :
unbreakable, fast, ...

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


8 partitions maximum

2010-11-30 Thread David Demelier

Hello,

We all know that we can only have 8 ufs partitions in one freebsd slice. 
Since OpenBSD and NetBSD can support at most 32 partitions iirc.


I wonder why FreeBSD still lacks more ufs partitions in one slice?

Is there any plan to grow up max partitions or every work is dedicated 
to ZFS?


Kind regards,
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 8 partitions maximum

2010-11-30 Thread David DEMELIER
2010/11/30 Patrick Lamaiziere patf...@davenulle.org:
 Le Tue, 30 Nov 2010 21:45:03 +0100,
 David Demelier demelier.da...@gmail.com a écrit :

 Hello,

 Hello,

 We all know that we can only have 8 ufs partitions in one freebsd
 slice. Since OpenBSD and NetBSD can support at most 32 partitions
 iirc.

 I wonder why FreeBSD still lacks more ufs partitions in one slice?

 Is there any plan to grow up max partitions or every work is
 dedicated to ZFS?

 hmmm, isn't already done in 8.X ?
 from what's cooking for FreeBSD 8.0
 http://ivoras.sharanet.org/freebsd/freebsd8.html
 «
 bsdlabel gets extended to 26 partitions

 Status: Committed to -CURRENT
 Will appear in 8.0: sure
 Author: Marcel Moolenaar
 Web: commit message

 bsdlabel is (finally!) extended to support more than 8 partitions. The
 new limit of 26 partitions comes from the number of lower-case letters.

 To make use of this change, GEOM_PART needs to be used instead of
 GEOM_BSD (this is default in 8.0 but will not work with older kernels).
 »


I don't have GEOM_PART in my kernel, but if you said it's default it
should be pulled in.

 Regards.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


But why :

# /dev/md2s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  10m   164.2BSD0 0
  b:  10m   *4.2BSD0 0
  d:  10m   *4.2BSD0 0
  e:  10m   *4.2BSD0 0
  f:  10m   *4.2BSD0 0
  g:  10m   *4.2BSD0 0
  h:  10m   *4.2BSD0 0
  i:  10m   *4.2BSD0 0
  j:  10m   *4.2BSD0 0
  k:  10m   *4.2BSD0 0

  c:  20479730unused0 0 # raw part, don't edit

line 11: partition name out of range a-h: i
line 12: partition name out of range a-h: j
line 13: partition name out of range a-h: k
re-edit the label? [y]:

I'm on 8.1-RELEASE.

Cheers,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 8 partitions maximum

2010-11-30 Thread David DEMELIER
2010/11/30 Paul B Mahol one...@gmail.com:
 On 11/30/10, David DEMELIER demelier.da...@gmail.com wrote:
 2010/11/30 Patrick Lamaiziere patf...@davenulle.org:
 Le Tue, 30 Nov 2010 21:45:03 +0100,
 David Demelier demelier.da...@gmail.com a ecrit :

 Hello,

 Hello,

 We all know that we can only have 8 ufs partitions in one freebsd
 slice. Since OpenBSD and NetBSD can support at most 32 partitions
 iirc.

 I wonder why FreeBSD still lacks more ufs partitions in one slice?

 Is there any plan to grow up max partitions or every work is
 dedicated to ZFS?

 hmmm, isn't already done in 8.X ?
 from what's cooking for FreeBSD 8.0
 http://ivoras.sharanet.org/freebsd/freebsd8.html
 
 bsdlabel gets extended to 26 partitions

 Status: Committed to -CURRENT
 Will appear in 8.0: sure
 Author: Marcel Moolenaar
 Web: commit message

 bsdlabel is (finally!) extended to support more than 8 partitions. The
 new limit of 26 partitions comes from the number of lower-case letters.

 To make use of this change, GEOM_PART needs to be used instead of
 GEOM_BSD (this is default in 8.0 but will not work with older kernels).
 


 I don't have GEOM_PART in my kernel, but if you said it's default it
 should be pulled in.

 Regards.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org


 But why :

 # /dev/md2s1:
 8 partitions:
 #        size   offset    fstype   [fsize bsize bps/cpg]
   a:  10m       16    4.2BSD        0     0
   b:  10m       *    4.2BSD        0     0
   d:  10m       *    4.2BSD        0     0
   e:  10m       *    4.2BSD        0     0
   f:  10m       *    4.2BSD        0     0
   g:  10m       *    4.2BSD        0     0
   h:  10m       *    4.2BSD        0     0
   i:  10m       *    4.2BSD        0     0
   j:  10m       *    4.2BSD        0     0
   k:  10m       *    4.2BSD        0     0

   c:  2047973        0    unused        0     0         # raw part, don't
 edit

 line 11: partition name out of range a-h: i
 line 12: partition name out of range a-h: j
 line 13: partition name out of range a-h: k
 re-edit the label? [y]:

 I'm on 8.1-RELEASE.

 To make use of such feature you need to recreate table with gpart(8).

 bsdlabel is not going to work.


mark...@melon ~ $ sudo dd if=/dev/zero of=myfile.img bs=1m count=100
100+0 records in
100+0 records out
104857600 bytes transferred in 2.095537 secs (50038530 bytes/sec)
mark...@melon ~ $ sudo mdconfig -a -f myfile.img -u 2
mark...@melon ~ $ sudo gpart create -s MBR md2
md2 created
mark...@melon ~ $ sudo gpart show md2s1
gpart: No such geom: md2s1.
mark...@melon ~ $ sudo gpart add -t freebsd md2
md2s1 added
mark...@melon ~ $ sudo gpart add -t freebsd-ufs md2s1
gpart: No such geom: md2s1.
mark...@melon ~ $ sudo gpart create -s BSD md2s1
md2s1 created
mark...@melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1
md2s1a added
mark...@melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1
md2s1b added
mark...@melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1
md2s1d added
mark...@melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1
md2s1e added
mark...@melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1
md2s1f added
mark...@melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1
md2s1g added
mark...@melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1
md2s1h added
mark...@melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1
gpart: index '9': No space left on device
mark...@melon ~ $ sudo gpart add -t freebsd-ufs -s 1m md2s1
gpart: index '9': No space left on device

Maybe I really need GEOM_PART? Or I'm doing something wrong.

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 8 partitions maximum

2010-11-30 Thread David DEMELIER
2010/11/30 Paul B Mahol one...@gmail.com:
 On 11/30/10, David DEMELIER demelier.da...@gmail.com wrote:
 2010/11/30 Paul B Mahol one...@gmail.com:
 On 11/30/10, David DEMELIER demelier.da...@gmail.com wrote:
 2010/11/30 Patrick Lamaiziere patf...@davenulle.org:
 Le Tue, 30 Nov 2010 21:45:03 +0100,
 David Demelier demelier.da...@gmail.com a ecrit :

 Hello,

 Hello,

 We all know that we can only have 8 ufs partitions in one freebsd
 slice. Since OpenBSD and NetBSD can support at most 32 partitions
 iirc.

 I wonder why FreeBSD still lacks more ufs partitions in one slice?

 Is there any plan to grow up max partitions or every work is
 dedicated to ZFS?

 hmmm, isn't already done in 8.X ?
 from what's cooking for FreeBSD 8.0
 http://ivoras.sharanet.org/freebsd/freebsd8.html
 
 bsdlabel gets extended to 26 partitions

 Status: Committed to -CURRENT
 Will appear in 8.0: sure
 Author: Marcel Moolenaar
 Web: commit message

 bsdlabel is (finally!) extended to support more than 8 partitions. The
 new limit of 26 partitions comes from the number of lower-case letters.

 To make use of this change, GEOM_PART needs to be used instead of
 GEOM_BSD (this is default in 8.0 but will not work with older kernels).
 


 I don't have GEOM_PART in my kernel, but if you said it's default it
 should be pulled in.

 Regards.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org


 But why :

 # /dev/md2s1:
 8 partitions:
 #        size   offset    fstype   [fsize bsize bps/cpg]
   a:  10m       16    4.2BSD        0     0
   b:  10m       *    4.2BSD        0     0
   d:  10m       *    4.2BSD        0     0
   e:  10m       *    4.2BSD        0     0
   f:  10m       *    4.2BSD        0     0
   g:  10m       *    4.2BSD        0     0
   h:  10m       *    4.2BSD        0     0
   i:  10m       *    4.2BSD        0     0
   j:  10m       *    4.2BSD        0     0
   k:  10m       *    4.2BSD        0     0

   c:  2047973        0    unused        0     0         # raw part,
 don't
 edit

 line 11: partition name out of range a-h: i
 line 12: partition name out of range a-h: j
 line 13: partition name out of range a-h: k
 re-edit the label? [y]:

 I'm on 8.1-RELEASE.

 To make use of such feature you need to recreate table with gpart(8).

 bsdlabel is not going to work.


 mark...@melon ~ $ sudo dd if=/dev/zero of=myfile.img bs=1m count=100
 100+0 records in
 100+0 records out
 104857600 bytes transferred in 2.095537 secs (50038530 bytes/sec)
 mark...@melon ~ $ sudo mdconfig -a -f myfile.img -u 2
 mark...@melon ~ $ sudo gpart create -s MBR md2
 md2 created
 mark...@melon ~ $ sudo gpart show md2s1
 gpart: No such geom: md2s1.
 mark...@melon ~ $ sudo gpart add -t freebsd md2
 md2s1 added
 mark...@melon ~ $ sudo gpart add -t freebsd-ufs md2s1
 gpart: No such geom: md2s1.
 mark...@melon ~ $ sudo gpart create -s BSD md2s1

 gpart create -s BSD -n 26 md2s1

Thank you, I didn't see this little part of gpart(8).

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 8 partitions maximum

2010-11-30 Thread David Demelier

On 30/11/2010 23:29, Paul B Mahol wrote:

On 11/30/10, David DEMELIERdemelier.da...@gmail.com  wrote:

2010/11/30 Paul B Maholone...@gmail.com:

On 11/30/10, David DEMELIERdemelier.da...@gmail.com  wrote:

2010/11/30 Patrick Lamaizierepatf...@davenulle.org:

Le Tue, 30 Nov 2010 21:45:03 +0100,
David Demelierdemelier.da...@gmail.com  a ecrit :


Hello,

Hello,


We all know that we can only have 8 ufs partitions in one freebsd
slice. Since OpenBSD and NetBSD can support at most 32 partitions
iirc.

I wonder why FreeBSD still lacks more ufs partitions in one slice?

Is there any plan to grow up max partitions or every work is
dedicated to ZFS?

hmmm, isn't already done in 8.X ?
from what's cooking for FreeBSD 8.0
http://ivoras.sharanet.org/freebsd/freebsd8.html

bsdlabel gets extended to 26 partitions

Status: Committed to -CURRENT
Will appear in 8.0: sure
Author: Marcel Moolenaar
Web: commit message

bsdlabel is (finally!) extended to support more than 8 partitions. The
new limit of 26 partitions comes from the number of lower-case letters.

To make use of this change, GEOM_PART needs to be used instead of
GEOM_BSD (this is default in 8.0 but will not work with older kernels).

I don't have GEOM_PART in my kernel, but if you said it's default it
should be pulled in.


Regards.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org


But why :

# /dev/md2s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
   a:  10m   164.2BSD0 0
   b:  10m   *4.2BSD0 0
   d:  10m   *4.2BSD0 0
   e:  10m   *4.2BSD0 0
   f:  10m   *4.2BSD0 0
   g:  10m   *4.2BSD0 0
   h:  10m   *4.2BSD0 0
   i:  10m   *4.2BSD0 0
   j:  10m   *4.2BSD0 0
   k:  10m   *4.2BSD0 0

   c:  20479730unused0 0 # raw part,
don't
edit

line 11: partition name out of range a-h: i
line 12: partition name out of range a-h: j
line 13: partition name out of range a-h: k
re-edit the label? [y]:

I'm on 8.1-RELEASE.

To make use of such feature you need to recreate table with gpart(8).

bsdlabel is not going to work.


mark...@melon ~ $ sudo dd if=/dev/zero of=myfile.img bs=1m count=100
100+0 records in
100+0 records out
104857600 bytes transferred in 2.095537 secs (50038530 bytes/sec)
mark...@melon ~ $ sudo mdconfig -a -f myfile.img -u 2
mark...@melon ~ $ sudo gpart create -s MBR md2
md2 created
mark...@melon ~ $ sudo gpart show md2s1
gpart: No such geom: md2s1.
mark...@melon ~ $ sudo gpart add -t freebsd md2
md2s1 added
mark...@melon ~ $ sudo gpart add -t freebsd-ufs md2s1
gpart: No such geom: md2s1.
mark...@melon ~ $ sudo gpart create -s BSD md2s1

gpart create -s BSD -n 26 md2s1


mark...@melon ~ $ sudo gpart create -s BSD -n 26 md0s1
gpart: entries '26': Invalid argument
mark...@melon ~ $ sudo gpart create -s BSD -n 8 md0s1
md0s1 created
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 8 partitions maximum

2010-12-01 Thread David DEMELIER
2010/12/1 Paul B Mahol one...@gmail.com:
 On 12/1/10, David Demelier demelier.da...@gmail.com wrote:
 On 30/11/2010 23:29, Paul B Mahol wrote:
 On 11/30/10, David DEMELIERdemelier.da...@gmail.com  wrote:
 2010/11/30 Paul B Maholone...@gmail.com:
 On 11/30/10, David DEMELIERdemelier.da...@gmail.com  wrote:
 2010/11/30 Patrick Lamaizierepatf...@davenulle.org:
 Le Tue, 30 Nov 2010 21:45:03 +0100,
 David Demelierdemelier.da...@gmail.com  a ecrit :

 Hello,
 Hello,

 We all know that we can only have 8 ufs partitions in one freebsd
 slice. Since OpenBSD and NetBSD can support at most 32 partitions
 iirc.

 I wonder why FreeBSD still lacks more ufs partitions in one slice?

 Is there any plan to grow up max partitions or every work is
 dedicated to ZFS?
 hmmm, isn't already done in 8.X ?
 from what's cooking for FreeBSD 8.0
 http://ivoras.sharanet.org/freebsd/freebsd8.html
 
 bsdlabel gets extended to 26 partitions

 Status: Committed to -CURRENT
 Will appear in 8.0: sure
 Author: Marcel Moolenaar
 Web: commit message

 bsdlabel is (finally!) extended to support more than 8 partitions. The
 new limit of 26 partitions comes from the number of lower-case
 letters.

 To make use of this change, GEOM_PART needs to be used instead of
 GEOM_BSD (this is default in 8.0 but will not work with older
 kernels).
 I don't have GEOM_PART in my kernel, but if you said it's default it
 should be pulled in.

 Regards.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org

 But why :

 # /dev/md2s1:
 8 partitions:
 #        size   offset    fstype   [fsize bsize bps/cpg]
    a:  10m       16    4.2BSD        0     0
    b:  10m       *    4.2BSD        0     0
    d:  10m       *    4.2BSD        0     0
    e:  10m       *    4.2BSD        0     0
    f:  10m       *    4.2BSD        0     0
    g:  10m       *    4.2BSD        0     0
    h:  10m       *    4.2BSD        0     0
    i:  10m       *    4.2BSD        0     0
    j:  10m       *    4.2BSD        0     0
    k:  10m       *    4.2BSD        0     0

    c:  2047973        0    unused        0     0         # raw part,
 don't
 edit

 line 11: partition name out of range a-h: i
 line 12: partition name out of range a-h: j
 line 13: partition name out of range a-h: k
 re-edit the label? [y]:

 I'm on 8.1-RELEASE.
 To make use of such feature you need to recreate table with gpart(8).

 bsdlabel is not going to work.

 mark...@melon ~ $ sudo dd if=/dev/zero of=myfile.img bs=1m count=100
 100+0 records in
 100+0 records out
 104857600 bytes transferred in 2.095537 secs (50038530 bytes/sec)
 mark...@melon ~ $ sudo mdconfig -a -f myfile.img -u 2
 mark...@melon ~ $ sudo gpart create -s MBR md2
 md2 created
 mark...@melon ~ $ sudo gpart show md2s1
 gpart: No such geom: md2s1.
 mark...@melon ~ $ sudo gpart add -t freebsd md2
 md2s1 added
 mark...@melon ~ $ sudo gpart add -t freebsd-ufs md2s1
 gpart: No such geom: md2s1.
 mark...@melon ~ $ sudo gpart create -s BSD md2s1
 gpart create -s BSD -n 26 md2s1

 mark...@melon ~ $ sudo gpart create -s BSD -n 26 md0s1
 gpart: entries '26': Invalid argument
 mark...@melon ~ $ sudo gpart create -s BSD -n 8 md0s1
 md0s1 created


 Looks like max number is 20, up to md2s1t.


Yes I saw that it was only 20 max, so how to get 26 partitions using
bsdlabel ? :-)

Cheers,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 8 partitions maximum

2010-12-01 Thread David DEMELIER
2010/12/1 krad kra...@gmail.com:
 On 1 December 2010 14:13, Bruce Cran br...@cran.org.uk wrote:

 On Wed, 1 Dec 2010 13:51:48 +
 Paul B Mahol one...@gmail.com wrote:
 [snip 9 levels of quoting]
  It is hardcoded. Not my code.

 Could you remember to remove excess quotes please? It's getting a bit
 ridiculous having to scroll past 50 lines to see a one-line reply :)

 --
 Bruce Cran
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org



 Is this a theoretical exercise as I cant see why you would need that many
 file systems? Why not just use a EFI layout then you can have 128 file
 sytems?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Yes it is just exercises, I heard bsdlabel was grow up so I wanted to
test, now I don't really understand why it's fixed to 20 only. I also
wanted to try partitionning a disk using only gpart and not
fdisk/bsdlabel at all so to check if what announced is real but it
seems not :-).

Kind regards,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Kernel Panic at loading FreeBSD

2010-12-03 Thread David DEMELIER
2010/12/3 Dmitry Postolov anta...@land.ru:
 Hi to All!

 Sorry for my bad English...

 On my notebook HP ProBook 4510s NX668EA (Bios Compaq F17 (latest)) the
 problem of times in some weeks is observed at loading FreeBSD 8.1.

 ---

 Fatal trap 12: page fault while in kernel mode
 cpuid=0; apic id=00
 fault virtual adress=0x14
 fault code=supervisos read, page not present
 instruction pointer=0x20:0xc0966916
 stack pointer=0x28:0xea0b7c50
 frame pointer=0x28:0xea0b7c50
 code segment=base 0x0, limit 0xf type 0x1b =DPL 0, pres 1, def 32 1, gran
 1
 processor eflags=interrupt enabled, resume, IOPL=0
 current process=15 (acpi_thermal)
 trap number=12
 ppanic:smp_tlp_shutdown: interrapts disabled
 cpuid=0
 Uptime: 25s
 Cannot dump. Device not defined or unavailable
 Automatic reboot in 15 seconds - press a key on the console to abort or switch
 off the system now

 ---

 Loading was spent with options by default (ACPI ON) as at ACPI OFF, the system
 isn't loaded in general on this notebook (into networks there were similar
 cases on this model laptop). Drops out too kernel panic at loading if it is
 necessary - then I will write log.

 Any thoughts to solve this problem?

 best regards,
 Dmitry
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Which version is it? I also have a probook 4510s and I don't have any problem ..

cheers

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: No GPT on an usb key

2010-12-03 Thread David DEMELIER
2010/11/8 Boris Samorodov b...@ipt.ru:
 Hi,

 On Thu, 28 Oct 2010 09:52:55 +0200 David DEMELIER wrote:

 I'm trying to put on my USB mass storage device a GPT scheme
 partitions. But gpart still add them as slices :

 To be sure to remove the MBR before I dd'ed it

 $ sudo dd if=/dev/zero of=/dev/da0 bs=512 count=1
 1+0 records in
 1+0 records out
 512 bytes transferred in 0.003369 secs (151970 bytes/sec)
 $ sudo gpart create -s GPT da0
 da0 created
 $ gpart show da0
 =      34  15771653  da0  GPT  (7.5G)
         34  15771653       - free -  (7.5G)

 $ sudo gpart add -b 34 -t freebsd da0
 da0s1 added

 Why it is still s1? In my kernel config I have this :

 GPART(8) may be a good start here. Ex.:
 -
 ...
 PARTITION TYPES
     The gpart utility uses symbolic names for common partition types to avoid
     that the user needs to know what the partitioning scheme in question is
     and what the actual number or identification needs to be used for a par-
     ticular type.  The gpart utility also allows the user to specify scheme-
     specific partition types for partition types that do not have symbol
     names.  The symbolic names currently understood are:
 ...
     freebsd        A FreeBSD partition that uses the BSD disklabel to sub-
                    divide the partition into file systems.  This is a legacy
                    partition type and should not be used for the APM or GPT
                    schemes.  The scheme-specific types are !165 for MBR,
                    !FreeBSD for APM, and
                    !516e7cb4-6ecf-11d6-8ff8-00022d09712b for GPT.
 ...
 -

 device          crypto
 options         GEOM_ELI
 options         GEOM_PART_GPT
 options         GEOM_LABEL
 options         GEOM_VOL

 Do I need something that I forgot?

 Seems you forgot to read the manual page carefully. ;-)

 --
 HTH  WBR, bsam
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Yes, a friend tole me there is a problem. But I was sure that a
freebsd slive even on GPT will be named da0s1 but he was really sure
so I asked here and I forgot to answer.

Cheers, :-)

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't mount root during freebsd-update 7.0 - 8.1 on amd64

2010-12-05 Thread David DEMELIER
2010/12/5  jo...@jodocus.org:
 Hi

 I'm trying to upgrade a amd64 box from 7.0-RELEASE to 8.1-RELEASE with
 freebsd-update. After the first reboot the 8.1R GENERIC kernel loads (I'm
 using a custom kernel, so at this point the generic kernel is loaded
 manually)
 It then claims it can't mount /

 One thing that's odd is that instead of finding ad4s1a it finds ad4a. Same
 for the other filesystems. It however can't find init on this device.

 Did I miss something important in src/UPDATING?


 Thanks


 Joost Bekkers



 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Here : http://ivoras.sharanet.org/freebsd/freebsd8.html

GEOM_PART becomes the default slicer

Status: Committed to -CURRENT
Will appear in 8.0: sure
Author: Marcel Moolenaar  others
Web: commit message

GEOM_PART (gpart) is a new GEOM partition class (slicer) and utility
that rolls up support for many partitioning formats (MBR, BSD, GPT
etc.) into a single code base.

NOTE: Caveat when upgrading! GEOM_PART might interpret existing
partition tables (especially if many operating systems are present -
multi boot) differently than the previous classes. Your devices might
get renamed.

NOTE: Some old utilities like bsdlabel may not work if the kernel
doesn't include GEOM_BSD and other old slicer classes. In other words,
bsdlabel et al don't work with GEOM_PART.

Maybe you're encountering this trouble right now. what I would advise
you is using labels. Please do the following :

tunefs -L root /dev/ad4a
tunefs -L var /dev/ad4e (assuming it's e on your system ?)
and for usr, tmp, etc ...

From a fixit environment. then edit your /etc/fstab and place
/dev/ufs/root /dev/ufs/var instead of hardcoding the device node.

Cheers,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can I run a 32-bit jail (or software) on a 64-bit server?

2010-12-06 Thread David DEMELIER
2010/12/6 Redd Vinylene reddvinyl...@gmail.com:
 Greetings!

 Can I run a 32-bit jail (or software) on a 64-bit server? I need to use some
 software that only works on 32-bit.

 Thanks!
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Hello,

Since this question is asked a lot of time I think we should update
the handbook to say `yes' it's possible ! :-)

http://lists.freebsd.org/pipermail/freebsd-jail/2010-January/001139.html

http://www.mail-archive.com/freebsd-j...@freebsd.org/msg01201.html

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Unable to extract audio cd tracks

2010-12-13 Thread David Demelier

Hi,

Reading this http://www.freebsd.org/doc/handbook/creating-cds.html I 
would try to extract my files from my optical drive. (I don't have 
atapicam but if I understand well it's only needed for cdda2wav)


mark...@abricot ~ $ sudo dd if=/dev/acd0t01 of=track1.cdr
dd: /dev/acd0t01: Invalid argument
0+0 records in
0+0 records out
0 bytes transferred in 0.026221 secs (0 bytes/sec)

do I really need atapicam even if I directly read from the device?

Kind regards,
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


  1   2   3   >