Evaluating strings as literals
Is there an easy way to evaluate a string like "myVar.property.value <= myOtherVar.property.value" against run-time literal values? The format will always be the same, but breaking it into 3 parts, running a switch...case through all the operators then trying to convert the strings seems awful cumbersome....
I have a demo here you might find useful
MyClass.as
package
import flash.text.TextField;
public class MyClass
public var tf:TextField;
public function MyClass()
tf = new TextField();
tf.text = "somthing or other";
and
package
import flash.display.Sprite;
import flash.events.Event;
[SWF(backgroundColor="#ffffff", width=400, height=400, frameRate=60)]
public class Main extends Sprite
public function Main()
if (stage)
init();
else
addEventListener(Event.ADDED_TO_STAGE, init);
public function init(event:Event=null):void
removeEventListener(Event.ADDED_TO_STAGE, init);
var myClass:MyClass = new MyClass();
var string:String = "tf.text.length";
var values:Array = string.split(".");
trace(myClass[values[0]][values[1]][values[2]]);
I can't currently think of a way to get hold of the myClass instance though
Similar Messages
-
Coldfusion 10's behaviour appears to have changed in the evaluation of strings with commas.
Example:
FORM.IDS = 123456, 654321, 789101 (Form Submission)
<cfset fieldname="IDS" />
<cfset test1 = FORM[fieldname] />
<cfset test2 = evalute("FORM.#fieldname#") />
In Coldfusion 9 the value of test1 and test2 is reported as "123456, 654321, 789101".
In Coldfusion 10 the value of test1 and test2 is reported as an array. "Array (3)".
Is this expected behaviour? This is jacking up an application we are trying to upgrade and did not expect this one. Any help will be much appreciated.
Cheers
Leeldavis101 wrote:
Coldfusion 10's behaviour appears to have changed in the evaluation of strings with commas.
Example:
FORM.IDS = 123456, 654321, 789101 (Form Submission)
<cfset fieldname="IDS" />
<cfset test1 = FORM[fieldname] />
<cfset test2 = evaluate("FORM.#fieldname#") /> [BKBK: typo corrected]
In Coldfusion 9 the value of test1 and test2 is reported as "123456, 654321, 789101".
In Coldfusion 10 the value of test1 and test2 is reported as an array. "Array (3)".
Is this expected behaviour?
No, that is unexpected. Please report it as a bug. -
I was wondering if anyone knew of a library or methods in existing J2SE API that would allow me to evaluate a string formula to a double.
For example, if I had the following code:
Double test;
String formula = new String("12.5 + 15 * 4");
/* What can I do here to make this work */
test = new Double(formula);This would result in a NumberFormatException, because the Double constructor can't resolve the string to a double value.
Anyone have an idea of how to solve this without building my own extensive method with StringTokenizer, etc.
Thanks in advance.Unfortunately, the formula is entered by a user in a configuration file and stored as a string to start.
The reason is that the user doesn't actually put the values in, rather markers for fields from a database. My application replaces these markers with the actual values. And that is why it is in String format. -
SQL Error: ORA-01861: literal does not match format string
Hello,
I'm trying to do data mining on a web log which recorded one day web access information from a busy web server. I imported the data into Oracle Data miner, and created a table (WEBLOG). The idea is to create a new field, i.e. session, for the users so that each session could be thought as a representative of a user-intent (aka topic). Now based on this, data mining models would be used to cluster(group) the users based on their similarity. The first step is to prepare the data which involves using SQL queries. So first, all I did was to create a function for date and time. This is the following code I used,
create or replace function ssndate(p_date in varchar2 default '03-01-18',
p_time in varchar2)
return number
$if dbms_db_version.ver_le_10 $then
deterministic
$elsif dbms_db_version.ver_le_11 $then
result_cache
$end
as
begin
return trunc((to_date(p_date||' '||p_time, 'dd-mm-yy hh24:mi:ss')
- to_date('01-01-90','dd-mm-yy')) * (86400/2400));
end ssndate;
The function ssndate compiled successfully.
The next step I took was to create a view through the following query,
create or replace view WEBLOG_VIEWS
as
select (select ssndate(LOG_DATE, LOG_TIME) from dual) as "SESSION_DT",
C_IP,
CS_USER_AGENT,
(CS_URI_STEM||'?'||CS_URI_QUERY) as WEB_LINK
from WEBLOG;
This was successful as well. The problem is in the next step where I try to do data grouping.
create table FINAL_WEBLOG as
select SESSION_DT, C_IP, CS_USER_AGENT,
listagg(WEB_LINK, ' ')
within group(order by C_IP, CS_USER_AGENT) "WEB_LINKS"
from WEBLOG_VIEWS
group by C_IP, CS_USER_AGENT, SESSION_DT
order by SESSION_DT
For this, I got the error,
Error starting at line 1 in command:
create table FINAL_LOG as
select SESSION_DT, C_IP, CS_USER_AGENT,
listagg(WEB_LINK, ' ')
within group(order by C_IP, CS_USER_AGENT) "WEB_LINKS"
from WEBLOG_VIEWS
group by C_IP, CS_USER_AGENT, SESSION_DT
order by SESSION_DT
Error at Command Line:1 Column:7
Error report:
SQL Error: ORA-01861: literal does not match format string
ORA-06512: at "DMUSER.SSNDATE", line 11
ORA-06512: at line 1
01861. 00000 - "literal does not match format string"
*Cause: Literals in the input must be the same length as literals in
the format string (with the exception of leading whitespace).
If the "FX" modifier has been toggled on, the literal must
match exactly, with no extra whitespace.
*Action: Correct the format string to match the literal.
I don't know where I'm going wrong with this.. the to_date function should be fine. In the data that I possess, the date and time are in no format. Example: 30118 and 0:00:09 respectively. If anyone has any clue about this I would be sincerely grateful for any help that I can get!! It's quite urgent..
The Oracle version is 11.2.0.1.0
Edited by: 975265 on Dec 5, 2012 5:31 PM975265 wrote:
Ok.. Looks like I touched a nerve there. I apologize. I'm still a student, and this is the first time that I've tried something at this level. I'm still in the learning process, so I was hoping that someone could point me in the right direction in order to "fix" the data.Not so much touching a nerve as simply trying to implement a very very poor, but all too common, practice. Since you are a student (which we didn't know until this post) most people will cut you some slack. However, this little exchange should now be burned into your brain as you move forward. One of the very first rules of programming is to ALWAYS use the correct data types for your data. And along with that, never ever depend on implicit type conversions - always use the proper explicit conversion functions.
And as a slight follow-on, when considering the appropriate data type, don't assume that just because we refer to a given element as a 'something number' that it is indeed a number. Telephone "numbers" are NOT numbers. U.S. Social Security "numbers" are NOT numbers. U.S. Postal Zip codes are NOT numbers. All are just character strings which, by convention, we limit to the same characters we use to represent numbers.
And since this entire discussion came up around the representation of dates, you might want to take a look at http://edstevensdba.wordpress.com/2011/04/07/nls_date_format/
Now, go forth and be a smarter programmer than your peers.
Edited by: EdStevens on Dec 6, 2012 6:12 AM -
Is there any scripting library?or a way to evaluate mathimatical strings?
by evaluating strings i mean things of the type
evaluate("5+3-2+sin(5)") should return some value, i know that in other languages, you will find libraries that define some scriptengine that can evaluate such strings, is this available in java aswell? 'Cause after searching i only found one for JavaScript, which is not what i'm looking for.
It doesn't even have to be a scriptengine, just some sort of way i can use to, given some sort of mathematical string (with functions like sinus,POW,...) to evaluate it, it doesn't have to be able to recognise variables in it, but it would help but i'd be happy with just some library or anything that can implement this.
Edited by: omegax on Apr 9, 2009 1:52 AM
Edited by: omegax on Apr 9, 2009 1:53 AMomegax wrote:
by evaluating strings i mean things of the type
evaluate("5+3-2+sin(5)") should return some value, i know that in other languages, you will find libraries that define some scriptengine that can evaluate such strings, is this available in java aswell? 'Cause after searching i only found one for JavaScript, which is not what i'm looking for.The example you posted can be handled by the JavaScript engine shipped with Java 1.6 (although you'll have to change sin(...) to Math.sin(...)):
ScriptEngine engine = new ScriptEngineManager().getEngineByExtension("js");
System.out.println(engine.eval("Math.sin(45)")); -
is it possible to interpre or cast a string with "arraysyntax" like "{5,8}" as an array?
or is the only way to parse the string and catch the values via string comparisons? this would mean it doesn't matter how the string looks like as long as i am able to get the values.
probably it is possible via a script engine?
i am using javascript to eval strings like "3+6".(representative = (Double) engine.eval("3.5");)
but evaluating strings like "(1,2,3)" (javascript array syntax) is different?! And array=(double[]) engine.eval("(3.5,1.0)"); would not work?i am can freely specify the string. so it could also 1,2|3,4. but i thought it is some how possible to specify the string the right way and then cast/interpret it directly as a string.
"What does engine.eval("(3.5,1.0)").getClass() return? Are you getting a List of Doubles?"
that is exactly what i want to know -
the correct way for javascript is:
double[][] value = (double[][]) engine.eval("new Array(new Array(1.0,2.0),new Array(3.0,4.0))");i know javascript it self returns "[[1.0,2.0][3.0,4.0]]" but i don't know which class the eval returns. javadoc says object. -
"Economizing" in a list of maps with identical keys (like a database table)
Hi there!:
I've been checking this forum for information about something like what I state in the title of this message, but haven't found such a specific case. I'm commenting my doubt below.
I'm working with a list of maps whose keys are exactly the same in all them (they're of type String). Indeed it could be considered an extrapolation of a database table: The list contains maps which act as rows, and every map contains keys and values which represent column names and values.
However, this means to repeat the same key values on every map and this spends memory. Right, maybe it's not such a big spent, but since the list can contains thousands of maps, I think that it would be better to choose a more "economical" way to achieve the same result.
I had thought about building a class which stored everything as a list of lists and, internally, it mapped that String keys with the corresponding Integer indexes of every list. But then I realized that maybe I was re-inventing the wheel, because it's very probable that someone has already made that. Maybe is there a class on the Core API which allows that?
Thank you very much for your help.Well, after re-reading the Java tutorial which is located in the Sun website I've came to a conclusion which I should have before, when I thought about using StringBuffers as keys of the maps instead of Strings.
I'm so used to build Strings using literals instead of the "new String ()" constructor (just as everyone) that I had forgotten that, as it happens with any kind of object but not the primary data types, Strings are not passed to the methods by value, but by reference. The fact of them being immutable made me think that they were passed by value.
Apart of that, my problem also was that using literals I was creating different String objects every time, despite the fact that they were equal about their content (making 400 different keys called "name" for example)
In other words, I was doing something like this:
// It makes a list of maps which will contain maps of boy's personal data (as if they were "rows" in a table).
List <Map <String, Object>> listData = new ArrayList <Map <String, Object>> (listBoy.size ());
// It loops over a list of Boy objects, obtained using EJB.
for (Boy boy : listBoy) {
// It makes a new map containing only the information which I'm interested on from the Boy object.
Map <String, Object> map = new HashMap <String, Object> (2);
map.put ("name", boy.getName ());
map.put ("surname", boy.getSurname ());
// It adds the map to the list of data.
listData.add (map);
}Well, the "problem" here (being too demanding, but I'm :P ) is that I was adding all the time new Strings objects as keys in every map. The key "name" in the first map was different from "name" in the second one and so on.
I guess that my knowledge got messed at certain point and thought that it was impossible to use exactly the same String object in different maps (the reference, not the same value!). Thus, my idea of using StringBuffers instead.
But thinking about it carefully, Why not to do this?:
List <Map <String, Object>> listData = new ArrayList <Map <String, Object>> (listBoy.size ());
// It makes the necessary String keys previously, instead of using literals on every loop later.
String name = "name";
String surname = "surname";
for (Boy boy : listBoy) {
// It uses references (pointers) to the same String keys, instead of new ones every time.
Map <String, Object> map = new HashMap <String, Object> (2);
map.put (name, boy.getName ());
map.put (surname, boy.getSurname ());
listData.add (map);
}Unfortunately, the "hasCode" method on String is overloaded and instead of returning the typical hash code based on the single ID of the object in memory, it returns one based on its content. That way I can't make sure that the "name" key in one map refers to the same object in memory than another one. I know, I know. The common sense and the Java documentation confirm that, but had loved having an empiric way to demonstrate it.
I guess that using "javap" and disassembling the generated bytecode is the only way to make sure that it's that way.
I believe that it's solved now :) (if no one tells me the contrary). I still am mad at myself for thinking that Strings were passed by value. Thinking about it now it had no sense!
dannyyates: It's curious because re-reading every answer I think that you maybe were pointing to this solution already. But the sentence "you put the +same+ string" was a little ambiguous for me and thought that you meant putting the same String as "putting the same text" (which I already was doing), not the same object reference (in other words, using a common variable). I wish we could have continued discussing that in depth. Thanks a lot for your help anyway :) . -
[SOLVED] Problem with MPD and ALSA
Hello, I'm having problems with mpd using alsa output.
My alsa system works, I can play mp3 using mplayer -ao alsa, and flash plugin plays sound, my user (and also mpd user)is in the audio group.
But then mpd can't open the alsa device.
If I tell mpd to autodetect audio, it can't find anything:
(Running as root to see output, if using /etc/rc.d/mpd start, it just fails)
output: No "audio_output" defined in config file
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Error opening default ALSA device: No such file or directory
output: Attempting to detect a oss audio device
oss: Error opening OSS device "/dev/dsp": No such file or directory
oss: Error opening OSS device "/dev/sound/dsp": No such file or directory
output: Attempting to detect a pulse audio device
mpd: src/output/pulse_output_plugin.c:400: pulse_output_wait_connection: Assertion `po->mainloop != ((void *)0)' failed.
and if I set up a basic alsa config...
audio_output {
type "alsa"
name "HDA-Intel"
It starts, but then playing anything:
% mpc play
Caspian - La Cerva
[paused] #2/10 0:00/4:59 (0%)
volume: n/a repeat: off random: off single: off consume: off
ERROR: problems opening audio device
mpc.log output:
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
Sep 22 10:08 : output: Failed to open "HDA-Intel" [alsa]: Failed to open ALSA device "default": No such file or directory
I tried with different device and mixer settings and the error is always the same. It can't open alsa device.
Any Ideas?
Thank you.
Last edited by xzakox (2011-09-22 20:04:33)Check that mpd is really being run as the mpd user, and that id lists audio for the mpd user. Also post your whole mpd.conf and the output from amixer when running as the user you run mpd as.
Last edited by Mr.Elendig (2011-09-22 11:43:35) -
Mobility Radeon 7500 OpenGL issues
Whenever I attempt to use anything involving openGL, my CPU usage hits 100%. Complex openGL programs will drop to a framerate of less than 10, and sometimes crash Xorg. How can I fix this?
General system info:
lspci
00:00.0 Host bridge: Intel Corporation 82845 845 [Brookdale] Chipset Host Bridge (rev 04)
00:01.0 PCI bridge: Intel Corporation 82845 845 [Brookdale] Chipset AGP Bridge (rev 04)
00:1d.0 USB Controller: Intel Corporation 82801CA/CAM USB Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801CA/CAM USB Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801CA/CAM USB Controller #3 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 42)
00:1f.0 ISA bridge: Intel Corporation 82801CAM ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801CAM IDE U100 Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801CA/CAM SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801CA/CAM AC'97 Audio Controller (rev 02)
00:1f.6 Modem: Intel Corporation 82801CA/CAM AC'97 Modem Controller (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]
02:00.0 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
02:00.1 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
02:02.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
02:08.0 Ethernet controller: Intel Corporation 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller (rev 42)
lsmod
Module Size Used by
ipv6 279604 16
oss_usb 106284 2
oss_ich 18832 4
osscore 552820 4 oss_usb,oss_ich
ext2 68964 1
fan 4448 0
fuse 64856 2
arc4 1756 2
ecb 2812 2
b43 137208 0
radeon 666112 2
ttm 37164 1 radeon
joydev 10528 0
drm 156160 4 radeon,ttm
i2c_algo_bit 5888 1 radeon
e100 34308 0
ssb 45988 1 b43
ppdev 7008 0
yenta_socket 25384 2
rsrc_nonstatic 12316 1 yenta_socket
mii 4892 1 e100
thinkpad_acpi 67988 0
battery 10816 0
nvram 6984 1 thinkpad_acpi
video 20116 0
output 2908 1 video
pcmcia 36168 2 b43,ssb
parport_pc 37060 1
irtty_sir 5564 0
sir_dev 11712 1 irtty_sir
psmouse 60084 0
ac 4224 0
processor 36076 1
iTCO_wdt 11072 0
iTCO_vendor_support 3136 1 iTCO_wdt
mac80211 155788 1 b43
irda 126744 1 sir_dev
crc_ccitt 1724 1 irda
thermal 13912 0
uhci_hcd 23692 0
button 5612 0
ehci_hcd 36620 0
serio_raw 5792 0
shpchp 34384 0
intel_agp 28604 1
lp 9732 0
parport 34412 3 ppdev,parport_pc,lp
evdev 10240 15
cfg80211 90364 2 b43,mac80211
pci_hotplug 28732 1 shpchp
pcspkr 2492 0
i2c_i801 9616 0
i2c_core 21808 4 radeon,drm,i2c_algo_bit,i2c_i801
rfkill 19696 2 thinkpad_acpi,cfg80211
sg 27728 0
agpgart 32660 3 ttm,drm,intel_agp
led_class 4000 2 b43,thinkpad_acpi
usbcore 154032 5 oss_usb,uhci_hcd,ehci_hcd
pcmcia_core 35920 5 b43,ssb,yenta_socket,rsrc_nonstatic,pcmcia
rtc_cmos 11344 0
rtc_core 17976 1 rtc_cmos
rtc_lib 2524 1 rtc_core
ext4 334112 2
mbcache 7104 2 ext2,ext4
jbd2 82016 1 ext4
crc16 1660 1 ext4
sr_mod 16644 0
cdrom 36032 1 sr_mod
sd_mod 28344 5
pata_acpi 4252 0
ata_piix 23268 4
ata_generic 4704 0
libata 169548 3 pata_acpi,ata_piix,ata_generic
floppy 56356 0
scsi_mod 112468 4 sg,sr_mod,sd_mod,libata
dmesg
Linux version 2.6.31-ARCH (root@architect) (gcc version 4.4.2 (GCC) ) #1 SMP PREEMPT Tue Nov 10 19:48:17 CET 2009
KERNEL supported cpus:
Intel GenuineIntel
AMD AuthenticAMD
NSC Geode by NSC
Cyrix CyrixInstead
Centaur CentaurHauls
Transmeta GenuineTMx86
Transmeta TransmetaCPU
UMC UMC UMC UMC
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
BIOS-e820: 000000000009f000 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000003ff70000 (usable)
BIOS-e820: 000000003ff70000 - 000000003ff7e000 (ACPI data)
BIOS-e820: 000000003ff7e000 - 000000003ff80000 (ACPI NVS)
BIOS-e820: 000000003ff80000 - 0000000040000000 (reserved)
BIOS-e820: 00000000ff800000 - 0000000100000000 (reserved)
DMI present.
last_pfn = 0x3ff70 max_arch_pfn = 0x100000
MTRR default type: uncachable
MTRR fixed ranges enabled:
00000-9FFFF write-back
A0000-BFFFF uncachable
C0000-CFFFF write-protect
D0000-DBFFF uncachable
DC000-DFFFF write-back
E0000-FFFFF write-protect
MTRR variable ranges enabled:
0 base 000000000 mask FC0000000 write-back
1 base 03FF80000 mask FFFF80000 uncachable
2 disabled
3 disabled
4 disabled
5 disabled
6 disabled
7 disabled
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
e820 update range: 0000000000002000 - 0000000000006000 (usable) ==> (reserved)
Scanning 1 areas for low memory corruption
modified physical RAM map:
modified: 0000000000000000 - 0000000000002000 (usable)
modified: 0000000000002000 - 0000000000006000 (reserved)
modified: 0000000000006000 - 000000000009f000 (usable)
modified: 000000000009f000 - 00000000000a0000 (reserved)
modified: 00000000000dc000 - 0000000000100000 (reserved)
modified: 0000000000100000 - 000000003ff70000 (usable)
modified: 000000003ff70000 - 000000003ff7e000 (ACPI data)
modified: 000000003ff7e000 - 000000003ff80000 (ACPI NVS)
modified: 000000003ff80000 - 0000000040000000 (reserved)
modified: 00000000ff800000 - 0000000100000000 (reserved)
initial memory mapped : 0 - 01800000
init_memory_mapping: 0000000000000000-00000000377fe000
0000000000 - 0000400000 page 4k
0000400000 - 0037400000 page 2M
0037400000 - 00377fe000 page 4k
kernel direct mapping tables up to 377fe000 @ 7000-c000
RAMDISK: 3fea7000 - 3ff5fb2e
Allocated new RAMDISK: 00100000 - 001b8b2e
Move RAMDISK from 000000003fea7000 - 000000003ff5fb2d to 00100000 - 001b8b2d
ACPI: RSDP 000f7010 00024 (v02 IBM )
ACPI: XSDT 3ff731cd 0004C (v01 IBM TP-1I 00002080 LTP 00000000)
ACPI: FACP 3ff73300 00081 (v01 IBM TP-1I 00002080 IBM 00000001)
ACPI: DSDT 3ff733e7 0AAD5 (v01 IBM TP-1I 00002080 MSFT 0100000D)
ACPI: FACS 3ff7f000 00040
ACPI: SSDT 3ff733b4 00033 (v01 IBM TP-1I 00002080 MSFT 0100000D)
ACPI: ECDT 3ff7debc 00052 (v01 IBM TP-1I 00002080 IBM 00000001)
ACPI: TCPA 3ff7df0e 00032 (v01 IBM TP-1I 00002080 PTL 00000001)
ACPI: BOOT 3ff7dfd8 00028 (v01 IBM TP-1I 00002080 LTP 00000001)
135MB HIGHMEM available.
887MB LOWMEM available.
mapped low ram: 0 - 377fe000
low ram: 0 - 377fe000
node 0 low ram: 00000000 - 377fe000
node 0 bootmap 00008000 - 0000ef00
(9 early reservations) ==> bootmem [0000000000 - 00377fe000]
#0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000]
#1 [0000001000 - 0000002000] EX TRAMPOLINE ==> [0000001000 - 0000002000]
#2 [0000006000 - 0000007000] TRAMPOLINE ==> [0000006000 - 0000007000]
#3 [0001000000 - 000156da44] TEXT DATA BSS ==> [0001000000 - 000156da44]
#4 [000009f000 - 0000100000] BIOS reserved ==> [000009f000 - 0000100000]
#5 [000156e000 - 0001574128] BRK ==> [000156e000 - 0001574128]
#6 [0000007000 - 0000008000] PGTABLE ==> [0000007000 - 0000008000]
#7 [0000100000 - 00001b8b2e] NEW RAMDISK ==> [0000100000 - 00001b8b2e]
#8 [0000008000 - 000000f000] BOOTMAP ==> [0000008000 - 000000f000]
Zone PFN ranges:
DMA 0x00000000 -> 0x00001000
Normal 0x00001000 -> 0x000377fe
HighMem 0x000377fe -> 0x0003ff70
Movable zone start PFN for each node
early_node_map[3] active PFN ranges
0: 0x00000000 -> 0x00000002
0: 0x00000006 -> 0x0000009f
0: 0x00000100 -> 0x0003ff70
On node 0 totalpages: 261899
free_area_init_node: node 0, pgdat c141b740, node_mem_map c1575000
DMA zone: 32 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 3963 pages, LIFO batch:0
Normal zone: 1744 pages used for memmap
Normal zone: 221486 pages, LIFO batch:31
HighMem zone: 271 pages used for memmap
HighMem zone: 34403 pages, LIFO batch:7
Using APIC driver default
ACPI: PM-Timer IO Port: 0x1008
SMP: Allowing 1 CPUs, 0 hotplug CPUs
Local APIC disabled by BIOS -- you can enable it with "lapic"
APIC: disable apic facility
nr_irqs_gsi: 16
PM: Registered nosave memory: 0000000000002000 - 0000000000006000
PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000dc000
PM: Registered nosave memory: 00000000000dc000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bf800000)
NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 14 pages at c1d7a000, static data 34332 bytes
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 259852
Kernel command line: root=/dev/disk/by-uuid/ce79e597-2b00-4812-95b4-eda62758ab6c ro vga=792 nomodeset
PID hash table entries: 4096 (order: 12, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
Initializing HighMem for node 0 (000377fe:0003ff70)
Memory: 1031828k/1048000k available (3111k kernel code, 15416k reserved, 1120k data, 416k init, 138696k highmem)
virtual kernel memory layout:
fixmap : 0xfff1e000 - 0xfffff000 ( 900 kB)
pkmap : 0xff800000 - 0xffc00000 (4096 kB)
vmalloc : 0xf7ffe000 - 0xff7fe000 ( 120 MB)
lowmem : 0xc0000000 - 0xf77fe000 ( 887 MB)
.init : 0xc1422000 - 0xc148a000 ( 416 kB)
.data : 0xc1309ddd - 0xc1421ea8 (1120 kB)
.text : 0xc1000000 - 0xc1309ddd (3111 kB)
Checking if this processor honours the WP bit even in supervisor mode...Ok.
SLUB: Genslabs=13, HWalign=128, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:512
Fast TSC calibration using PIT
Detected 2192.708 MHz processor.
Console: colour dummy device 80x25
console [tty0] enabled
Calibrating delay loop (skipped), value calculated using timer frequency.. 4387.14 BogoMIPS (lpj=7309026)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Hyper-Threading is disabled
mce: CPU supports 4 MCE banks
------------[ cut here ]------------
WARNING: at arch/x86/kernel/apic/apic.c:247 native_apic_write_dummy+0x4b/0x60()
Hardware name: 236686U
Modules linked in:
Pid: 0, comm: swapper Not tainted 2.6.31-ARCH #1
Call Trace:
[<c10464da>] ? warn_slowpath_common+0x7a/0xc0
[<c101f2ab>] ? native_apic_write_dummy+0x4b/0x60
[<c1046540>] ? warn_slowpath_null+0x20/0x40
[<c101f2ab>] ? native_apic_write_dummy+0x4b/0x60
[<c1016601>] ? intel_init_thermal+0xd1/0x1d0
[<c10149c3>] ? mce_init+0xc3/0xf0
[<c10ed693>] ? __kmalloc+0x93/0x210
[<c1015bc5>] ? mce_intel_feature_init+0x15/0x70
[<c13014ed>] ? mcheck_init+0x261/0x2b5
[<c12ff55a>] ? identify_cpu+0x377/0x386
[<c10ecabf>] ? kmem_cache_alloc+0x6f/0x170
[<c1429dc9>] ? identify_boot_cpu+0xa/0x1e
[<c1429f90>] ? check_bugs+0x14/0x108
[<c109add0>] ? __delayacct_tsk_init+0x20/0x50
[<c1422a31>] ? start_kernel+0x332/0x353
[<c14224f0>] ? unknown_bootoption+0x0/0x1bd
---[ end trace a7919e7f17c0a725 ]---
CPU0: Thermal monitoring enabled (TM1)
Performance Counters: no PMU driver, software counters only.
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 11k freed
ACPI: Core revision 20090521
ACPI: setting ELCR to 0200 (from 0800)
weird, boot CPU (#0) not listed by the BIOS.
SMP motherboard not detected.
Local APIC not detected. Using dummy APIC emulation.
SMP disabled
Brought up 1 CPUs
Total of 1 processors activated (4387.14 BogoMIPS).
CPU0 attaching NULL sched-domain.
Booting paravirtualized kernel on bare hardware
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xfd8fe, last bus=8
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: EC description table is found, configuring boot EC
ACPI: EC: non-query interrupt received, switching to interrupt mode
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using PIC for interrupt routing
ACPI: EC: GPE = 0x1c, I/O: command/status = 0x66, data = 0x62
ACPI: EC: driver started in interrupt mode
ACPI: Power Resource [PUBS] (on)
ACPI: ACPI Dock Station Driver: 3 docks/bays found
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:00.0: reg 10 32bit mmio: [0xe0000000-0xe3ffffff]
pci 0000:00:1d.0: reg 20 io port: [0x1800-0x181f]
pci 0000:00:1d.1: reg 20 io port: [0x1820-0x183f]
pci 0000:00:1d.2: reg 20 io port: [0x1840-0x185f]
pci 0000:00:1f.0: quirk: region 1000-107f claimed by ICH4 ACPI/GPIO/TCO
pci 0000:00:1f.0: quirk: region 1180-11bf claimed by ICH4 GPIO
pci 0000:00:1f.1: reg 10 io port: [0x1f0-0x1f7]
pci 0000:00:1f.1: reg 14 io port: [0x3f4-0x3f7]
pci 0000:00:1f.1: reg 18 io port: [0x170-0x177]
pci 0000:00:1f.1: reg 1c io port: [0x374-0x377]
pci 0000:00:1f.1: reg 20 io port: [0x1860-0x186f]
pci 0000:00:1f.1: reg 24 32bit mmio: [0x000000-0x0003ff]
pci 0000:00:1f.3: reg 20 io port: [0x1880-0x189f]
pci 0000:00:1f.5: reg 10 io port: [0x1c00-0x1cff]
pci 0000:00:1f.5: reg 14 io port: [0x18c0-0x18ff]
pci 0000:00:1f.6: reg 10 io port: [0x2400-0x24ff]
pci 0000:00:1f.6: reg 14 io port: [0x2000-0x207f]
pci 0000:01:00.0: reg 10 32bit mmio: [0xe8000000-0xefffffff]
pci 0000:01:00.0: reg 14 io port: [0x3000-0x30ff]
pci 0000:01:00.0: reg 18 32bit mmio: [0xd0100000-0xd010ffff]
pci 0000:01:00.0: reg 30 32bit mmio: [0x000000-0x01ffff]
pci 0000:01:00.0: supports D1 D2
pci 0000:00:01.0: bridge io port: [0x3000-0x3fff]
pci 0000:00:01.0: bridge 32bit mmio: [0xd0100000-0xd01fffff]
pci 0000:00:01.0: bridge 32bit mmio pref: [0xe8000000-0xefffffff]
pci 0000:02:00.0: reg 10 32bit mmio: [0x50000000-0x50000fff]
pci 0000:02:00.0: supports D1 D2
pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:02:00.0: PME# disabled
pci 0000:02:00.1: reg 10 32bit mmio: [0x51000000-0x51000fff]
pci 0000:02:00.1: supports D1 D2
pci 0000:02:00.1: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:02:00.1: PME# disabled
pci 0000:02:02.0: reg 10 32bit mmio: [0xd0200000-0xd0201fff]
pci 0000:02:08.0: reg 10 32bit mmio: [0xd0202000-0xd0202fff]
pci 0000:02:08.0: reg 14 io port: [0x8000-0x803f]
pci 0000:02:08.0: supports D1 D2
pci 0000:02:08.0: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:02:08.0: PME# disabled
pci 0000:00:1e.0: transparent bridge
pci 0000:00:1e.0: bridge io port: [0x4000-0x8fff]
pci 0000:00:1e.0: bridge 32bit mmio: [0xd0200000-0xdfffffff]
pci 0000:00:1e.0: bridge 32bit mmio pref: [0xf0000000-0xf7ffffff]
pci_bus 0000:00: on NUMA node 0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 11) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 11) *0, disabled.
PCI: Using ACPI for IRQ routing
NetLabel: Initializing
NetLabel: domain hash size = 128
NetLabel: protocols = UNLABELED CIPSOv4
NetLabel: unlabeled traffic allowed by default
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
system 00:00: iomem range 0x0-0x9ffff could not be reserved
system 00:00: iomem range 0xc0000-0xc3fff could not be reserved
system 00:00: iomem range 0xc4000-0xc7fff could not be reserved
system 00:00: iomem range 0xc8000-0xcbfff could not be reserved
system 00:00: iomem range 0xcc000-0xcffff could not be reserved
system 00:00: iomem range 0xdc000-0xdffff could not be reserved
system 00:00: iomem range 0xe0000-0xe3fff could not be reserved
system 00:00: iomem range 0xe4000-0xe7fff could not be reserved
system 00:00: iomem range 0xe8000-0xebfff could not be reserved
system 00:00: iomem range 0xec000-0xeffff could not be reserved
system 00:00: iomem range 0xf0000-0xfffff could not be reserved
system 00:00: iomem range 0x100000-0x3fffffff could not be reserved
system 00:00: iomem range 0xfec00000-0xffffffff could not be reserved
system 00:02: ioport range 0x1000-0x107f has been reserved
system 00:02: ioport range 0x1180-0x11bf has been reserved
system 00:02: ioport range 0x15e0-0x15ef has been reserved
system 00:02: ioport range 0x1600-0x167f has been reserved
pci 0000:00:01.0: PCI bridge, secondary bus 0000:01
pci 0000:00:01.0: IO window: 0x3000-0x3fff
pci 0000:00:01.0: MEM window: 0xd0100000-0xd01fffff
pci 0000:00:01.0: PREFETCH window: 0xe8000000-0xefffffff
pci 0000:02:00.0: CardBus bridge, secondary bus 0000:03
pci 0000:02:00.0: IO window: 0x004000-0x0040ff
pci 0000:02:00.0: IO window: 0x004400-0x0044ff
pci 0000:02:00.0: PREFETCH window: 0xf0000000-0xf3ffffff
pci 0000:02:00.0: MEM window: 0xd4000000-0xd7ffffff
pci 0000:02:00.1: CardBus bridge, secondary bus 0000:07
pci 0000:02:00.1: IO window: 0x004800-0x0048ff
pci 0000:02:00.1: IO window: 0x004c00-0x004cff
pci 0000:02:00.1: PREFETCH window: 0xf4000000-0xf7ffffff
pci 0000:02:00.1: MEM window: 0xd8000000-0xdbffffff
pci 0000:00:1e.0: PCI bridge, secondary bus 0000:02
pci 0000:00:1e.0: IO window: 0x4000-0x8fff
pci 0000:00:1e.0: MEM window: 0xd0200000-0xdfffffff
pci 0000:00:1e.0: PREFETCH window: 0xf0000000-0xf7ffffff
pci 0000:00:1e.0: setting latency timer to 64
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
pci 0000:02:00.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
pci 0000:02:00.1: PCI INT B -> Link[LNKB] -> GSI 11 (level, low) -> IRQ 11
pci_bus 0000:00: resource 0 io: [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffff]
pci_bus 0000:01: resource 0 io: [0x3000-0x3fff]
pci_bus 0000:01: resource 1 mem: [0xd0100000-0xd01fffff]
pci_bus 0000:01: resource 2 pref mem [0xe8000000-0xefffffff]
pci_bus 0000:02: resource 0 io: [0x4000-0x8fff]
pci_bus 0000:02: resource 1 mem: [0xd0200000-0xdfffffff]
pci_bus 0000:02: resource 2 pref mem [0xf0000000-0xf7ffffff]
pci_bus 0000:02: resource 3 io: [0x00-0xffff]
pci_bus 0000:02: resource 4 mem: [0x000000-0xffffffff]
pci_bus 0000:03: resource 0 io: [0x4000-0x40ff]
pci_bus 0000:03: resource 1 io: [0x4400-0x44ff]
pci_bus 0000:03: resource 2 pref mem [0xf0000000-0xf3ffffff]
pci_bus 0000:03: resource 3 mem: [0xd4000000-0xd7ffffff]
pci_bus 0000:07: resource 0 io: [0x4800-0x48ff]
pci_bus 0000:07: resource 1 io: [0x4c00-0x4cff]
pci_bus 0000:07: resource 2 pref mem [0xf4000000-0xf7ffffff]
pci_bus 0000:07: resource 3 mem: [0xd8000000-0xdbffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
Unpacking initramfs...
Freeing initrd memory: 738k freed
Simple Boot Flag at 0x35 set to 0x1
IBM machine detected. Enabling interrupts during APM calls.
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: overridden by ACPI.
Scanning for low memory corruption every 60 seconds
audit: initializing netlink socket (disabled)
type=2000 audit(1259350175.183:1): initialized
highmem bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
msgmni has been set to 1746
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci 0000:01:00.0: Boot video device
pci 0000:02:08.0: Firmware left e100 interrupts enabled; disabling
vesafb: framebuffer at 0xe8000000, mapped to 0xf8080000, using 4608k, total 16320k
vesafb: mode is 1024x768x24, linelength=3072, pages=6
vesafb: protected mode interface info at c000:5701
vesafb: pmi: set display start = c00c5795, set palette = c00c57e1
vesafb: pmi: ports = 3010 3016 3054 3038 303c 305c 3000 3004 30b0 30b2 30b4
vesafb: scrolling: redraw
vesafb: Truecolor: size=0:8:8:8, shift=0:16:8:0
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a NS16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A
00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a NS16550A
serial 0000:00:1f.6: PCI INT B -> Link[LNKB] -> GSI 11 (level, low) -> IRQ 11
serial 0000:00:1f.6: PCI INT B disabled
input: Macintosh mouse button emulation as /devices/virtual/input/input0
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
cpuidle: using governor ladder
cpuidle: using governor menu
TCP cubic registered
NET: Registered protocol family 17
Using IPI No-Shortcut mode
Switched to high resolution mode on CPU 0
registered taskstats version 1
Initalizing network drop monitor service
Freeing unused kernel memory: 416k freed
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
Floppy drive(s): fd0 is 1.44M
SCSI subsystem initialized
FDC 0 is a National Semiconductor PC87306
libata version 3.00 loaded.
ata_piix 0000:00:1f.1: version 2.13
ata_piix 0000:00:1f.1: enabling device (0005 -> 0007)
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
ata_piix 0000:00:1f.1: PCI INT A -> Link[LNKC] -> GSI 11 (level, low) -> IRQ 11
ata_piix 0000:00:1f.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x1860 irq 14
ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x1868 irq 15
ata1.00: ATA-7: SAMSUNG MP0201H, YP200-06, max UDMA/100
ata2.00: ATAPI: HL-DT-STCD-RW/DVD DRIVE GCC-4240N, 0211, max UDMA/33
ata1.00: 39179952 sectors, multi 16: LBA48
ata1.00: configured for UDMA/100
ata2.00: configured for UDMA/33
scsi 0:0:0:0: Direct-Access ATA SAMSUNG MP0201H YP20 PQ: 0 ANSI: 5
scsi 1:0:0:0: CD-ROM HL-DT-ST RW/DVD GCC-4240N 0211 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 39179952 512-byte logical blocks: (20.0 GB/18.6 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: [sda] Attached SCSI disk
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs (sda3): INFO: recovery required on readonly filesystem
EXT4-fs (sda3): write access will be enabled during recovery
EXT4-fs (sda3): barriers enabled
kjournald2 starting: pid 500, dev sda3:8, commit interval 5 seconds
EXT4-fs (sda3): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (sda3): orphan cleanup on readonly fs
EXT4-fs (sda3): ext4_orphan_cleanup: deleting unreferenced inode 212034
EXT4-fs (sda3): 1 orphan inode deleted
EXT4-fs (sda3): recovery complete
EXT4-fs (sda3): mounted filesystem with ordered data mode
rtc_cmos 00:06: RTC can wake from S4
rtc_cmos 00:06: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one month, y3k, 114 bytes nvram
udev: starting version 146
intel_rng: FWH not detected
Linux agpgart interface v0.103
sd 0:0:0:0: Attached scsi generic sg0 type 0
sr 1:0:0:0: Attached scsi generic sg1 type 5
i801_smbus 0000:00:1f.3: PCI INT B -> Link[LNKB] -> GSI 11 (level, low) -> IRQ 11
input: PC Speaker as /devices/platform/pcspkr/input/input2
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
agpgart-intel 0000:00:00.0: Intel 845G Chipset
agpgart-intel 0000:00:00.0: AGP aperture is 64M @ 0xe0000000
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
lp: driver loaded but no devices found
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
ACPI: Power Button [PWRF]
input: Lid Switch as /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input4
uhci_hcd: USB Universal Host Controller Interface driver
uhci_hcd 0000:00:1d.0: power state changed by ACPI to D0
uhci_hcd 0000:00:1d.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:1d.0: setting latency timer to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:1d.0: irq 11, io base 0x00001800
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.1: power state changed by ACPI to D0
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
uhci_hcd 0000:00:1d.1: PCI INT B -> Link[LNKD] -> GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:1d.1: setting latency timer to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1d.1: irq 11, io base 0x00001820
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.2: PCI INT C -> Link[LNKC] -> GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:1d.2: setting latency timer to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1d.2: irq 11, io base 0x00001840
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
thermal LNXTHERM:01: registered as thermal_zone0
ACPI: Thermal Zone [THM0] (58 C)
ACPI: Lid Switch [LID]
input: Sleep Button as /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input5
ACPI: Sleep Button [SLPB]
NET: Registered protocol family 23
usb 2-2: new full speed USB device using uhci_hcd and address 2
iTCO_vendor_support: vendor-support=0
iTCO_wdt: Intel TCO WatchDog Timer Driver v1.05
iTCO_wdt: Found a ICH3-M TCO device (Version=1, TCOBASE=0x1060)
iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
Marking TSC unstable due to TSC halts in idle
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
processor LNXCPU:00: registered as cooling_device0
ACPI: Processor [CPU0] (supports 8 throttling states)
ACPI: AC Adapter [AC] (on-line)
parport_pc 00:0b: reported by Plug and Play ACPI
parport0: PC-style at 0x3bc, irq 7 [PCSPP,TRISTATE]
usb 2-2: configuration #1 chosen from 4 choices
lp0: using parport0 (interrupt-driven).
nsc-ircc, chip->init
nsc-ircc, Found chip at base=0x02e
nsc-ircc, driver loaded (Dag Brattli)
nsc_ircc_open(), can't get iobase of 0x2f8
nsc-ircc, Found chip at base=0x02e
nsc-ircc, driver loaded (Dag Brattli)
nsc_ircc_open(), can't get iobase of 0x2f8
nsc-ircc 00:0c: disabled
input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A03:00/device:03/device:04/input/input6
ACPI: Video Device [VID] (multi-head: yes rom: no post: no)
Non-volatile memory driver v1.3
thinkpad_acpi: ThinkPad ACPI Extras v0.23
thinkpad_acpi: http://ibm-acpi.sf.net/
thinkpad_acpi: ThinkPad BIOS 1IET69WW (2.08 ), EC 1IHT20WW-1.07
ACPI: Battery Slot [BAT0] (battery present)
Registered led device: tpacpi::thinklight
Registered led device: tpacpi::power
Registered led device: tpacpi::standby
input: ThinkPad Extra Buttons as /devices/virtual/input/input7
ppdev: user-space parallel port driver
yenta_cardbus 0000:02:00.0: CardBus bridge found [1014:0512]
yenta_cardbus 0000:02:00.0: Using INTVAL to route CSC interrupts to PCI
yenta_cardbus 0000:02:00.0: Routing CardBus interrupts to PCI
yenta_cardbus 0000:02:00.0: TI: mfunc 0x01d21022, devctl 0x64
e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
Synaptics Touchpad, model: 1, fw: 5.9, id: 0x2c6ab1, caps: 0x884793/0x0
serio: Synaptics pass-through port at isa0060/serio1/input0
input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input8
yenta_cardbus 0000:02:00.0: ISA IRQ mask 0x0438, PCI irq 11
yenta_cardbus 0000:02:00.0: Socket status: 30000006
yenta_cardbus 0000:02:00.0: pcmcia: parent PCI bridge I/O window: 0x4000 - 0x8fff
pcmcia_socket pcmcia_socket0: cs: IO port probe 0x4000-0x8fff: clean.
yenta_cardbus 0000:02:00.0: pcmcia: parent PCI bridge Memory window: 0xd0200000 - 0xdfffffff
yenta_cardbus 0000:02:00.0: pcmcia: parent PCI bridge Memory window: 0xf0000000 - 0xf7ffffff
[drm] Initialized drm 1.1.0 20060810
[drm] VGACON disable radeon kernel modesetting.
pci 0000:01:00.0: power state changed by ACPI to D0
pci 0000:01:00.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[drm] Initialized radeon 1.31.0 20080528 for 0000:01:00.0 on minor 0
ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 11
e100 0000:02:08.0: PCI INT A -> Link[LNKE] -> GSI 11 (level, low) -> IRQ 11
e100 0000:02:08.0: PME# disabled
e100: eth0: e100_probe: addr 0xd0202000, irq 11, MAC addr 00:0d:60:37:df:cb
b43-pci-bridge 0000:02:02.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, low) -> IRQ 11
ssb: Sonics Silicon Backplane found on PCI device 0000:02:02.0
yenta_cardbus 0000:02:00.1: CardBus bridge found [1014:0512]
yenta_cardbus 0000:02:00.1: Using INTVAL to route CSC interrupts to PCI
yenta_cardbus 0000:02:00.1: Routing CardBus interrupts to PCI
yenta_cardbus 0000:02:00.1: TI: mfunc 0x01d21022, devctl 0x64
b43-phy0: Broadcom 4318 WLAN found (core revision 9)
phy0: Selected rate control algorithm 'minstrel'
Broadcom 43xx driver loaded [ Features: PML, Firmware-ID: FW13 ]
yenta_cardbus 0000:02:00.1: ISA IRQ mask 0x0438, PCI irq 11
yenta_cardbus 0000:02:00.1: Socket status: 30000006
yenta_cardbus 0000:02:00.1: pcmcia: parent PCI bridge I/O window: 0x4000 - 0x8fff
pcmcia_socket pcmcia_socket1: cs: IO port probe 0x4000-0x8fff: clean.
yenta_cardbus 0000:02:00.1: pcmcia: parent PCI bridge Memory window: 0xd0200000 - 0xdfffffff
yenta_cardbus 0000:02:00.1: pcmcia: parent PCI bridge Memory window: 0xf0000000 - 0xf7ffffff
fuse init (API version 7.12)
pcmcia_socket pcmcia_socket0: cs: IO port probe 0x100-0x3af: clean.
pcmcia_socket pcmcia_socket0: cs: IO port probe 0x3e0-0x4ff: excluding 0x4d0-0x4d7
pcmcia_socket pcmcia_socket0: cs: IO port probe 0x820-0x8ff: clean.
pcmcia_socket pcmcia_socket0: cs: IO port probe 0xc00-0xcf7: clean.
pcmcia_socket pcmcia_socket0: cs: IO port probe 0xa00-0xaff: clean.
pcmcia_socket pcmcia_socket1: cs: IO port probe 0x100-0x3af: clean.
pcmcia_socket pcmcia_socket1: cs: IO port probe 0x3e0-0x4ff: excluding 0x4d0-0x4d7
pcmcia_socket pcmcia_socket1: cs: IO port probe 0x820-0x8ff: clean.
pcmcia_socket pcmcia_socket1: cs: IO port probe 0xc00-0xcf7: clean.
pcmcia_socket pcmcia_socket1: cs: IO port probe 0xa00-0xaff: clean.
psmouse serio2: ID: 10 00 64
EXT4-fs (sda3): internal journal on sda3:8
EXT4-fs (sda4): barriers enabled
kjournald2 starting: pid 2051, dev sda4:8, commit interval 5 seconds
EXT4-fs (sda4): internal journal on sda4:8
EXT4-fs (sda4): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (sda4): mounted filesystem with ordered data mode
Adding 265064k swap on /dev/sda2. Priority:-1 extents:1 across:265064k
usb 2-2: USB disconnect, address 2
IBM TrackPoint firmware: 0x0e, buttons: 3/3
input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/serio2/input/input9
Clocksource tsc unstable (delta = -78033180 ns)
oss_ich 0000:00:1f.5: PCI INT B -> Link[LNKB] -> GSI 11 (level, low) -> IRQ 11
usbcore: registered new interface driver oss_usb
ttyS1: LSR safety check engaged!
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ADDRCONF(NETDEV_UP): eth0: link is not ready
agpgart-intel 0000:00:00.0: AGP 2.0 bridge
agpgart-intel 0000:00:00.0: putting AGP V2 device into 4x mode
pci 0000:01:00.0: putting AGP V2 device into 4x mode
[drm] Setting GART location based on new memory map
[drm] Loading R100 Microcode
[drm] writeback test succeeded in 1 usecs
b43 ssb0:0: firmware: requesting b43/ucode5.fw
b43 ssb0:0: firmware: requesting b43/pcm5.fw
b43 ssb0:0: firmware: requesting b43/b0g0initvals5.fw
b43 ssb0:0: firmware: requesting b43/b0g0bsinitvals5.fw
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
Registered led device: b43-phy0::tx
Registered led device: b43-phy0::rx
Registered led device: b43-phy0::radio
ADDRCONF(NETDEV_UP): wlan0: link is not ready
wlan0: authenticate with AP 00:1e:e5:79:4e:41
wlan0: authenticated
wlan0: associate with AP 00:1e:e5:79:4e:41
wlan0: RX AssocResp from 00:1e:e5:79:4e:41 (capab=0x11 status=0 aid=1)
wlan0: associated
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: no IPv6 routers present
usb 2-2: new full speed USB device using uhci_hcd and address 3
usb 2-2: configuration #1 chosen from 4 choices
Consoledump from an openGL game:
[nick@myhost nick]# tremulous
tremulous 1.1.0 linux-x86 Mar 17 2009
----- FS_Startup -----
Current search path:
/root/.tremulous/base
/opt/tremulous/base/vms-1.1.0.pk3 (4 files)
/opt/tremulous/base/map-uncreation-1.1.0.pk3 (110 files)
/opt/tremulous/base/map-tremor-1.1.0.pk3 (45 files)
/opt/tremulous/base/map-transit-1.1.0.pk3 (135 files)
/opt/tremulous/base/map-niveus-1.1.0.pk3 (134 files)
/opt/tremulous/base/map-nexus6-1.1.0.pk3 (151 files)
/opt/tremulous/base/map-karith-1.1.0.pk3 (118 files)
/opt/tremulous/base/map-atcs-1.1.0.pk3 (87 files)
/opt/tremulous/base/map-arachnid2-1.1.0.pk3 (67 files)
/opt/tremulous/base/data-1.1.0.pk3 (1229 files)
/opt/tremulous/base
2080 files in pk3 files
execing default.cfg
couldn't exec autogen.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok
----- Client Initialization -----
----- Initializing Renderer ----
----- Client Initialization Complete -----
----- R_Init -----
------- Input Initialization -------
Joystick is not active.
...loading libGL.so.1:
Calling SDL_Init(SDL_INIT_VIDEO)...
SDL_Init(SDL_INIT_VIDEO) passed.
Initializing OpenGL display
...setting mode 3: 640 480
Using 8/8/8 Color bits, 24 depth, 8 stencil display.
GL_RENDERER: Mesa DRI R100 (RV200 4C57) 20090101 AGP 4x x86/MMX/SSE2 TCL
Initializing OpenGL extensions
...GL_S3_s3tc not found
...ignoring GL_EXT_texture_env_add
...using GL_ARB_multitexture
...using GL_EXT_compiled_vertex_array
GL_VENDOR: Tungsten Graphics, Inc.
GL_RENDERER: Mesa DRI R100 (RV200 4C57) 20090101 AGP 4x x86/MMX/SSE2 TCL
GL_VERSION: 1.3 Mesa 7.6
GL_EXTENSIONS: GL_ARB_draw_buffers GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_logic_op GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_convolution GL_EXT_copy_texture GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_histogram GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_pixels GL_EXT_polygon_offset GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture GL_EXT_texture3D GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_vertex_array GL_APPLE_packed_pixels GL_ATI_texture_env_combine3 GL_ATI_texture_mirror_once GL_IBM_multimode_draw_arrays GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_MESA_ycbcr_texture GL_MESA_window_pos GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texture_rectangle GL_NV_texgen_reflection GL_OES_read_format GL_SGI_color_matrix GL_SGI_color_table GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays
GL_MAX_TEXTURE_SIZE: 2048
GL_MAX_ACTIVE_TEXTURES_ARB: 3
PIXELFORMAT: color(24-bits) Z(24-bit) stencil(8-bits)
MODE: 3, 640 x 480 fullscreen hz:N/A
GAMMA: hardware w/ 0 overbright bits
CPU:
rendering primitives: single glDrawElements
texturemode: GL_LINEAR_MIPMAP_LINEAR
picmip: 0
texture bits: 0
multitexture: enabled
compiled vertex arrays: enabled
texenv add: disabled
compressed textures: disabled
Initializing Shaders
...loading 'scripts/uncreation.shader'
...loading 'scripts/q3map2_tremor.shader'
...loading 'scripts/tremor.shader'
...loading 'scripts/transit.shader'
...loading 'scripts/niveus.shader'
...loading 'scripts/nexus6.shader'
...loading 'scripts/karith.shader'
...loading 'scripts/atcs.shader'
...loading 'scripts/arachnid2.shader'
...loading 'scripts/jetpack.shader'
...loading 'scripts/core.shader'
...loading 'scripts/flame.shader'
...loading 'scripts/misc.shader'
...loading 'scripts/common-trem.shader'
...loading 'scripts/titan.shader'
...loading 'scripts/water.shader'
...loading 'scripts/displays.shader'
...loading 'scripts/plant_life.shader'
...loading 'scripts/stasis.shader'
...loading 'scripts/booster.shader'
...loading 'scripts/eggpod.shader'
...loading 'scripts/medistat.shader'
...loading 'scripts/mgturret.shader'
...loading 'scripts/reactor.shader'
...loading 'scripts/telenode.shader'
...loading 'scripts/trapper.shader'
...loading 'scripts/overmind.shader'
...loading 'scripts/tesla.shader'
...loading 'scripts/dcc.shader'
...loading 'scripts/hive.shader'
...loading 'scripts/level2.shader'
...loading 'scripts/human.shader'
...loading 'scripts/null.shader'
...loading 'scripts/weapons.shader'
...loading 'scripts/conkit.shader'
...loading 'scripts/advckit.shader'
...loading 'scripts/psaw.shader'
...loading 'scripts/mdriver.shader'
...loading 'scripts/flamer.shader'
...loading 'scripts/crosshairs.shader'
...loading 'scripts/grenade.shader'
...loading 'scripts/splash.shader'
...loading 'scripts/marks.shader'
...loading 'scripts/sprites.shader'
...loading 'scripts/muzzleflashes.shader'
----- finished R_Init -----
------ Initializing Sound ------
Initializing SDL audio driver...
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
SDL audio driver is "dsp".
SDL_AudioSpec:
Format: AUDIO_S16LSB
Freq: 22050
Samples: 512
Channels: 2
Starting SDL audio callback...
SDL audio initialized.
----- Sound Info -----
1 stereo
16384 samples
16 samplebits
1 submission_chunk
22050 speed
0xa4241f8 dma buffer
No background file.
Sound intialization successful.
Sound memory manager started
Loading vm file vm/ui.qvm...
...which has vmMagic VM_MAGIC_VER2
Loading 1075 jump table targets
VM file ui compiled to 786313 bytes of code
ui loaded in 4596672 bytes on the hunk
UI menu load time = 705 milli seconds
UI menu load time = 55 milli seconds
UI menu load time = 51 milli seconds
--- Common Initialization Complete ---
Opening IP socket: localhost:30720
Hostname: myhost.localdomain
Alias: myhost
IP: 127.0.0.1
Started tty console (use +set ttycon 0 to disable)
*********************************WARN_ONCE*********************************
File radeon_tcl.c function radeon_run_tcl_render line 499
Rendering was 734 commands larger than predicted size. We might overflow command buffer.
----- CL_Shutdown -----
Closing SDL audio device...
SDL audio device shut down.
RE_Shutdown( 1 )
----- CL_Shutdown -----
Shutdown tty console
[nick@myhost nick]#
Display all 3035 possibilities? (y or n)radionecrotic wrote:
Has this always been the case for you or did you update recently and it started happening? There appears to be some sort of conflict with some machines and new changes to the kernel to allow quicker mode setting. See http://bbs.archlinux.org/viewtopic.php? … 47#p659347. I had to add !radeon to my MODULES list in /etc/rc.conf to get X to even work at all. I don't run anything that uses OpenGL so I don't know if it'll address your issue.
You may also want to take a look at http://bbs.archlinux.org/viewtopic.php? … 20#p662920 and add intel_agp radeon (that's two modules, in that order) to your MODULES list.
Well, I was having the graphical corruption issue in that first thread until I added the nomodeset boot flag. As for the modesetting, I think it directly conflicts with my boot flag, and without it, I get corruption. =/ -
Setting ALSA sound card system wide (rather than just in KDE)
Hi,
I've got an HTPC with an ATI Radeon HD 4350 graphics card running Arch x86. It has its own integrated sound card for outputting audio via HDMI, which is detected by ALSA as a separate device. I've managed to set it as the default audio device in KDE 4 (via System Settings). This allows applications such as Amarok and SMPlayer to properly output audio to the HD 4350's integrated sound card, but software such as Flash and MPlayer (from the command line) are still outputting audio to the motherboard's built-in sound card. How can I change this setting on a system-wide level? I've tried running alsaconf as root and adding
pcm.!default {
type hw
card 2
device 3
to ~/.asoundrc; I got the card and device numbers from aplay:
[htpc@exia ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: HDA Generic [HDA Generic]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
Here is the output from MPlayer when I try to play a video, complete with errors regarding audio:
MPlayer UNKNOWN-4.4.0 (C) 2000-2009 MPlayer Team
137 audio & 296 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /tmp/FlashmvWXPy.
libavformat file format detected.
[flv @ 0xac7d250]skipping flv packet: type 18, size 294, flags 0
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [H264] 854x480 0bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '2'
[AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[AO_ALSA] alsa-lib: conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such file or directory
[JACK] cannot open server
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '2'
[AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[AO_ALSA] alsa-lib: conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
[AO SDL] Unable to open audio: No available audio device
DVB card number must be between 1 and 4
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 854 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 854x480 => 854x480 Planar YV12
Thanks!
Last edited by w1ntermute (2009-06-28 18:40:03)whoops wrote:Do you use the motherboard sound-card?
No.
whoops wrote:If not - did you try just turning it off in bios (or blacklisting the driver)?
No, I haven't tried that. I'll give it a shot. Thanks for the tip!
Last edited by w1ntermute (2009-07-02 18:11:53) -
Trying to call HANA procedure via ABAP
Hi everyone,
I am using ABAP in Eclipse in order to call a HANA procedure within a BPC process chain. While referring to an SCN blog written by Baris Cekic, I have put together a working ABAP Class. This works as my proxy to a functioning HANA stored procedure. My issue is with the ABAP program I am using for the process chain. I believe that I'm passing my input parameter using the wrong format. Please bear with me, as I am not an ABAP programmer! Any help would be much appreciated! Please take a look at the screenshots. Thanks!
ABAP CLASS - ZCL_BPC_AMDP:
HANA PROCEDURE - ZPROC_BPC_AMDP:
ABAP PROGRAM - ZBW_BPC_AMDP:
This is my issue!! -----> INPUT of SP Name: (I've tried with and without the schema):
ABAP PROGRAM ERROR:Hi Anand,
you should preferentially use "NVARCHAR" instead of the non-unicode derivate "VARCHAR". As ABAP supports both unicode and non-unicode systems, we only allow the mapping of Strings/character literals from ABAP to NVARCHAR variables in HANA in all ABAP on HANA systems.
Please find an example of a _SYS_BIC procedure in an AMDP in class CL_EPM_OIA_SIMP_BP_CLSF_AMDPDT (method AMDP_GET_BP_CLASSIFICATION). Should be available in your system.
And you can additionally try to execute the call you put into the AMDP directly in the HANA SQL console.
Cheers,
Jasmin -
Running mplayer at boot with systemctl. fails with alsa-lib error
I am running Arch ARM on a raspberry pi and would like to use it as a headless music player.
I am trying to run mplayer in slave mode at start up and have in read from a fifo pipe which I could write to over SSH.
I have written this mplayer.service file:
[Unit]
Description='mplayer service'
[Service]
ExecStart=/usr/bin/tmux new-session -d -s mplayer 'mplayer -idle -input file=/systemdservice/mplayerfifo /systemdservice/1.mp3 &> /systemdservice/mplayererror.log'
User=user
Type=forking
[Install]
WantedBy=multi-user.target
When I start this service with 'sudo systemctl start mplayer.service' I get the following output:
MPlayer SVN-r36285-4.8.1 (C) 2000-2013 MPlayer Team
Cannot test OS support for SSE, disabling to be safe.
205 audio & 424 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /systemdservice/1.mp3.
libavformat version 55.7.100 (internal)
Audio only file format detected.
Load subtitles in /systemdservice/
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 32.0 kbit/2.27% (ratio: 4000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '1'
[AO_ALSA] alsa-lib: conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[AO_ALSA] alsa-lib: conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM sysdefault
[AO_ALSA] Playback open error: No such file or directory
AO: [pulse] Init failed: Connection refused
[JACK] cannot open server
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '1'
[AO_ALSA] alsa-lib: conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[AO_ALSA] alsa-lib: conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM sysdefault
[AO SDL] Unable to open audio: No available audio device
DVB card number must be between 1 and 4
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 0.1 (00.0) of 1567.0 (26:07.0) ??,?% [J
A: 0.1 (00.0) of 1567.0 (26:07.0) ??,?% [J
MPlayer interrupted by signal 2 in module: play_audio
A: 4.5 (04.5) of 315.0 (05:15.0) 1.7% [J
Exiting... (Quit)
mplayer starts within a tmux window but I don't get any sound and have to stop mplayer from within tmux with CTRL+C which ends the process.
interestingly when as user I run:
/usr/bin/tmux new-session -d -s mplayer 'mplayer -idle -input file=/systemdservice/mplayerfifo /systemdservice/1.mp3 &> /systemdservice/mplayererror.log'
it works perfectly.
If in mplayer.service I change the user to root it also works perfectly.
user is a member of audio group.
I am confused as to what is causing this problem which appears due to a limit of users audio group privilages when a process is started via systemd.
Any help appreciated.
Thanks in advance.
Last edited by epoynton (2013-10-30 21:44:43)Have you tried setting the audio output driver for mplayer explicitly? See:
mplayer -ao help
I would try
-ao alsa
ALSA doesn't use /dev/dsp anymore I don't think. On a Pi you will also need to make sure the mixer is set with amixer like:
amixer cset #
You can use
aplay -l
to see the available device IDs etc.
Hope this helps.
Last edited by Minsc (2013-11-11 17:02:08) -
I've set up mpd according to the wiki.
/etc/mpd.conf:
music_directory "/var/lib/mpd/music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/mpd.db"
log_file "/var/log/mpd/mpd.log"
pid_file "/run/mpd/mpd.pid
state_file "/var/lib/mpd/mpdstate"
user "mpd"
audio_output {
type "pulse"
name "My Pulse Output"
# server "remote_server" # optional
# sink "remote_server_sink" # optional
/var/lib/mpd/music is a symlink to /home/dennis/Musik/mpd/. I've given the mpd user recursive ownership to both /var/lib/mpd/ and /home/dennis/Musik/mpd/.
When I try to update the database (I've tried both mpc and Sonata), the log says
Failed to stat /var/lib/mpd/music: Permission denied
What permission am I missing?
SOLUTION:
I used the script config instead and it worked flawlessly.
Last edited by snufkin (2013-01-03 00:18:44)I returned this:
ene 17 21:00:55 ddich systemd[1]: Starting Music Player Daemon...
ene 17 21:00:55 ddich systemd[1]: Started Music Player Daemon.
ene 17 21:00:55 ddich mpd[14061]: output: No 'audio_output' defined in config file
ene 17 21:00:55 ddich mpd[14061]: output: Attempt to detect audio output device
ene 17 21:00:55 ddich mpd[14061]: output: Attempting to detect a alsa audio device
ene 17 21:00:55 ddich mpd[14061]: ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ene 17 21:00:55 ddich mpd[14061]: ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_dri...ctory
ene 17 21:00:55 ddich mpd[14061]: ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ene 17 21:00:55 ddich mpd[14061]: ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat r...ctory
ene 17 21:00:55 ddich mpd[14061]: ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ene 17 21:00:55 ddich mpd[14061]: ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer re...ctory
ene 17 21:00:55 ddich mpd[14061]: ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file ...ctory
ene 17 21:00:55 ddich mpd[14061]: ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
ene 17 21:00:55 ddich systemd[1]: mpd.service: main process exited, code=killed, status=6/ABRT
ene 17 21:00:55 ddich systemd[1]: Unit mpd.service entered failed state. -
Switched from openbox to Awesome, now i get no sound! [SOLVED]
Hi all,
I have just switched from openbox to awesome and within awesome i get no sound, but if i swith back to openbox i get sound.
Within awesome i get this output whenever i run any command that requires sound!
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
FATAL_ERROR: No valid sound driver
FATAL_ERROR: Server exited
and this is my audio controller info:
08:06.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)
Thanks in advance
Last edited by Arch_Adam (2010-07-30 13:12:45)Sorted...
i just did not use ck-launch, so i added it within my .xinitrc!
Thanks!
Last edited by Arch_Adam (2010-07-30 13:12:26) -
IReport data retrieval from MySql database
Hi,
can anyone help me? i am using iReport - jasperreports to design a report using a datasource/ connections.
i designed my report and everything works fine except that the data of the fields in mthe detail band is been retrieved more than once making the reports to have one data printed more than once(as many as possible). In my quey, i even used the "order by" as specified in the iReport manual.
Questions: Is there to fix this so that i can have one data of a field printed only once witout repeatition in the detail band(that is, print one value then the next till the last value then stop)Play with the evaluated and printed when options. Another thing you should do is create a group whose evaluation string is the key from your database. every time this value changes as the records are being evaluated the detail section will be printed.
Maybe you are looking for
-
Acrobat X: Option to hide the dotted line in between pages when viewing in 2 page view?
Acrobat X: Anyone know if there is an option to hide the dotted line in between pages when viewing in 2 page view? So that the 2 pages can look seemlessly joined, with no gap and no dotted line? This would be useful when viewing PDF magazines or bo
-
IWeb 08 Corrupts old web sites
Just another warning to you folks out there. iWeb corrupts web sites big time. Here's my steps: 1. I have a web site that was (notice I said WAS) 177 MB. I opened it with iWeb 08 and clicked upgrade. Saved it. 2. I then opened it and flipped through
-
Calendar duplicates not showing up in ical/snow leopard
After upgrading to ios5 and activating icloud, my ical entries on my macbook duplicated (as did the calendar entries on my iphone and ipad). I cleaned the macbook duplicates with spanning tools, resulting in an ical file on my macbook that is withou
-
Does anyone know how to copy a dvd to your cp's hardrive?
-
How to create a partition on existing table?
Hey Could some one please tell me on how to create a partition on existing table?