Дано: FreeBSD 4.9
xFree86 4.3.0startx
Результат:
xFree86.0.log
.....
(WW) checkDevMem: failed to open /dev/mem (Operation not permitted)
.....
fatal server error:
xf86EnableIO: Failed to open /dev/io for extended I/Oможет, кто сталкивался с подобной проблемой, поделитесь опытом.
заранее спасибо.
ЗЫ. запускаю под root
security level -> 1
>Дано: FreeBSD 4.9
> xFree86 4.3.0
>
>startx
>
>Результат:
>xFree86.0.log
>.....
>(WW) checkDevMem: failed to open /dev/mem (Operation not permitted)
>.....
>fatal server error:
>xf86EnableIO: Failed to open /dev/io for extended I/O
>
>может, кто сталкивался с подобной проблемой, поделитесь опытом.
>
>заранее спасибо.
>
>ЗЫ. запускаю под root
>security level -> 1
^^^^^^^^^^^^^^^^^^^^^- вот тебе и ответ:# man securelevel
# man security
>>
>>ЗЫ. запускаю под root
>>security level -> 1
>^^^^^^^^^^^^^^^^^^^^^- вот тебе и ответ:
>
># man securelevel
># man security
Другими словами, крома как понижением уровня безопасности до 0 никак не победить?
>>>
>>>ЗЫ. запускаю под root
>>>security level -> 1
>>^^^^^^^^^^^^^^^^^^^^^- вот тебе и ответ:
>>
>># man securelevel
>># man security
>
>
>Другими словами, крома как понижением уровня безопасности до 0 никак не победить?
>ну почему ;) можно, если запускать xdm через init во время загрузки, то бишь до изменения securelevel:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/x.html#... - спасет?
>ну почему ;) можно, если запускать xdm через init во время загрузки,
>то бишь до изменения securelevel:
>
>http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/x.html#... - спасет?спасибо за линк, сам че то не додумался сходить на официальный сайт :((
почитаю, повникаю....
но пока сделал так
kern_securelevel="1"
kern_securelevel_enable="NO"
что мне кажется равнозначным 0 уровню....Х завелся... правда мыша сошла с ума....
ответ на этот вопрос кажется тоже есть на страничке...
>Х завелся... правда мыша сошла с ума....
>ответ на этот вопрос кажется тоже есть на страничке...
"...
If you have a PS/2 mouse, just add moused_enable="YES" to /etc/rc.conf to start the mouse daemon at boot-time. Additionally, if you would like to use the mouse daemon on all virtual terminals instead of just the console, add allscreens_flags="-m on" to /etc/rc.conf.When the mouse daemon is running, access to the mouse must be coordinated between the mouse daemon and other programs such as X Windows. Refer to the FAQ Why does my mouse not work with X? for more details on this issue...."
Дополнительно, введя новую секцию в XFree86 конфигSection Pointer
Protocol "SysMouse"
Device "/dev/sysmouse"получил тот же результат: указатель мыши при загрузке Х, но как только пытаешься двинуть мышь, она летит в край рабочего стола и оттуда не выходит, причем периодически спонтанно открываются окна, которые обычно появляются при нажатии клавиш.
any suggestions?
>>Х завелся... правда мыша сошла с ума....
>>ответ на этот вопрос кажется тоже есть на страничке...
>"...
>If you have a PS/2 mouse, just add moused_enable="YES" to /etc/rc.conf to
>start the mouse daemon at boot-time. Additionally, if you would like
>to use the mouse daemon on all virtual terminals instead of
>just the console, add allscreens_flags="-m on" to /etc/rc.conf.
>
>When the mouse daemon is running, access to the mouse must be
>coordinated between the mouse daemon and other programs such as X
>Windows. Refer to the FAQ Why does my mouse not work
>with X? for more details on this issue...."
>Дополнительно, введя новую секцию в XFree86 конфиг
>
>Section Pointer
>Protocol "SysMouse"
>Device "/dev/sysmouse"
>
>получил тот же результат: указатель мыши при загрузке Х, но как только
>пытаешься двинуть мышь, она летит в край рабочего стола и
>оттуда не выходит, причем периодически спонтанно открываются окна, которые обычно появляются
>при нажатии клавиш.
>
>any suggestions?ps -axuww | grep moused ???
>ps -axuww | grep moused ???результат:
%ps -axuww | grep moused
root 93 0.0 0.2 916 524 ?? Is 5:34PM 0:00.30 moused -p /dev/psm0 -t auto%ps -axuww | grep moused
root 93 0.0 0.2 916 524 ?? Is 5:34PM 0:00.30 moused -p /dev/psm0 -t auto%ps -axuww | grep moused
root 93 0.0 0.2 916 524 ?? Is 5:34PM 0:00.30 moused -p /dev/psm0 -t auto
dayz 1471 0.0 0.1 272 152 p0 R+ 11:32AM 0:00.00 grep moused%ps -axuww | grep moused
dayz 1499 0.0 0.1 272 152 p0 R+ 11:32AM 0:00.00 grep moused
root 93 0.0 0.2 916 524 ?? Is 5:34PM 0:00.30 moused -p /dev/psm0 -t auto
%фигурирует устройство /dev/psm0, тогда как упоминалось связывание mouse и sysmouse.... или я не понял суть проблемы.. :((
>>ps -axuww | grep moused ???
>
>результат:
>
>%ps -axuww | grep moused
>root 93 0.0 0.2
> 916 524 ?? Is
>5:34PM 0:00.30 moused -p /dev/psm0 -t auto
>
>%ps -axuww | grep moused
>root 93 0.0 0.2
> 916 524 ?? Is
>5:34PM 0:00.30 moused -p /dev/psm0 -t auto
>
>%ps -axuww | grep moused
>root 93 0.0 0.2
> 916 524 ?? Is
>5:34PM 0:00.30 moused -p /dev/psm0 -t auto
>dayz 1471 0.0 0.1 272
> 152 p0 R+ 11:32AM
>0:00.00 grep moused
>
>%ps -axuww | grep moused
>dayz 1499 0.0 0.1 272
> 152 p0 R+ 11:32AM
>0:00.00 grep moused
>root 93 0.0 0.2
> 916 524 ?? Is
>5:34PM 0:00.30 moused -p /dev/psm0 -t auto
>%
>
>фигурирует устройство /dev/psm0, тогда как упоминалось связывание mouse и sysmouse.... или я
>не понял суть проблемы.. :((
да нет, понял, у меня работает, но в 4.2.0:[alone]~ > ps -axuww | grep mouse
root 19753 0,0 0,2 1012 268 p2 R+ 11:44AM 0:00,02 grep mouse
root 162 0,0 0,1 924 92 ?? Ss Tue10AM 151:33,14 moused -p /dev/psm0 -t auto
[alone]~ > grep "/dev" /etc/X11/XF86Config
Option "Device" "/dev/sysmouse"
[alone]~ >попробуй посмотри новшевста для 4.3.0 - описания на www.xfree86.org
>[alone]~ > ps -axuww | grep mouse
>root 19753 0,0 0,2 1012 268
> p2 R+ 11:44AM 0:00,02 grep
>mouse
>root 162 0,0 0,1
>924 92 ?? Ss Tue10AM
>151:33,14 moused -p /dev/psm0 -t auto
>[alone]~ > grep "/dev" /etc/X11/XF86Config
> Option "Device" "/dev/sysmouse"
>попробуй посмотри новшевста для 4.3.0 - описания на www.xfree86.org%grep "/dev" /etc/X11/XF86Config
# Option "Device" "/dev/mouse2"
# Option "Device" "/dev/cua0"
# Option "Device" "/dev/cua0"
# Option "Device" "/dev/ttyS0"
# Option "Device" "/dev/ttyS0"
Option "Device" "/dev/sysmouse"
Device "/dev/sysmouse"
%2. Summary of new features in 4.3.0.
2.2. Input Driver Enhancements
The mouse driver now has automatic protocol detection for PS/2 mice.вроде эта фича наоборот должна облегчить жизнь...
>>[alone]~ > ps -axuww | grep mouse
>>root 19753 0,0 0,2 1012 268
>> p2 R+ 11:44AM 0:00,02 grep
>>mouse
>>root 162 0,0 0,1
>>924 92 ?? Ss Tue10AM
>>151:33,14 moused -p /dev/psm0 -t auto
>>[alone]~ > grep "/dev" /etc/X11/XF86Config
>> Option "Device" "/dev/sysmouse"
>>попробуй посмотри новшевста для 4.3.0 - описания на www.xfree86.org
>
>%grep "/dev" /etc/X11/XF86Config
># Option "Device"
> "/dev/mouse2"
># Option "Device"
> "/dev/cua0"
># Option "Device"
> "/dev/cua0"
># Option "Device"
> "/dev/ttyS0"
># Option "Device"
> "/dev/ttyS0"
> Option
> "Device" "/dev/sysmouse"
>Device "/dev/sysmouse"
>%
>
>2. Summary of new features in 4.3.0.
>2.2. Input Driver Enhancements
>The mouse driver now has automatic protocol detection for PS/2 mice.
>
>вроде эта фича наоборот должна облегчить жизнь...у меня не начем попробовать, а собирать 4.3.0 с патчами - времени нет
чтобы проверить XF86Config, да и лень - скоро 4.4.0 выйдет, уже rc вышлипопробуй поэкспериментировать или посмотреть в groups.google.com поиском
>у меня не начем попробовать, а собирать 4.3.0 с патчами - времени
>нет
>чтобы проверить XF86Config, да и лень - скоро 4.4.0 выйдет, уже rc
>вышли
>
>попробуй поэкспериментировать или посмотреть в groups.google.com поискомв любом случае, спасибо за помощь и инфу :))
11.12. Why does my PS/2 mouse misbehave under X?Your mouse and the mouse driver may have somewhat become out of synchronization.
In rare cases the driver may erroneously report synchronization problem and you may see the kernel message:
psmintr: out of sync (xxxx != yyyy)
and notice that your mouse does not work properly.
If this happens, disable the synchronization check code by setting the driver flags for the PS/2 mouse driver to 0x100. Enter UserConfig by giving the -c option at the boot prompt:
boot: -c
Then, in the UserConfig command line, type:
UserConfig> flags psm0 0x100
UserConfig> quitкак попасть в UserConfig?
выражение "Enter UserConfig by giving the -c option at the boot prompt" - для меня непонятно....
растолкуйте, плиз.
>11.12. Why does my PS/2 mouse misbehave under X?
>
>Your mouse and the mouse driver may have somewhat become out of
>synchronization.
>
>In rare cases the driver may erroneously report synchronization problem and you
>may see the kernel message:
>
>psmintr: out of sync (xxxx != yyyy)
>
>and notice that your mouse does not work properly.
>
>If this happens, disable the synchronization check code by setting the driver
>flags for the PS/2 mouse driver to 0x100. Enter UserConfig by
>giving the -c option at the boot prompt:
>
>boot: -c
>
>Then, in the UserConfig command line, type:
>
>UserConfig> flags psm0 0x100
>UserConfig> quit
>
>как попасть в UserConfig?
>выражение "Enter UserConfig by giving the -c option at the boot prompt"
>- для меня непонятно....
>растолкуйте, плиз.User или Visual Config - в одном случае таблица устройств, в другом
с менюшками, вспомни инсталляцию:http://unix1.jinr.ru/~lavr/FreeBSDR/userconfig.html#START-US...
http://unix1.jinr.ru/~lavr/FreeBSDR/layout.html - вот вид Visual-mode User Config, а можно строковый - будет табличка, как описано в твоем варианте
в ядре должно быть:
options USERCONFIG #boot -c editor
options INTRO_USERCONFIG #imply -c and show intro screen
options VISUAL_USERCONFIG #visual boot -c editorесли с флагами у тебя все будет OK, то просто пересобери ядро с удачными:
man 4 psm
>в ядре должно быть:
>
>options USERCONFIG
>
>#boot -c editor
>options INTRO_USERCONFIG
> #imply -c and show intro screen
>
>options VISUAL_USERCONFIG
> #visual boot -c editor
>
>если с флагами у тебя все будет OK, то просто пересобери ядро
>с удачными:
>
>man 4 psm
коллега сказал, что без /usr/src/sys изменить ядро не получится так ли это?
>>в ядре должно быть:
>>
>>options USERCONFIG
>>
>>#boot -c editor
>>options INTRO_USERCONFIG
>> #imply -c and show intro screen
>>
>>options VISUAL_USERCONFIG
>> #visual boot -c editor
>>
>>если с флагами у тебя все будет OK, то просто пересобери ядро
>>с удачными:
>>
>>man 4 psm
>
>
>коллега сказал, что без /usr/src/sys изменить ядро не получится так ли это?
>эбсолютли йес (c) Madonna
но через boot -c задать флаг для psm никто не запрещает